Patch #1003700: Add socketpair function to socket module.

This commit is contained in:
Dave Cole 2004-08-09 04:51:41 +00:00
parent 80e53141b9
commit 331708b226
7 changed files with 130 additions and 0 deletions

View file

@ -303,6 +303,14 @@ success, a new \class{SSLObject} is returned.
\warning{This does not do any certificate verification!}
\end{funcdesc}
\begin{funcdesc}{socketpair}{\optional{family\optional{, type\optional{, proto}}}}
Build a pair of connected socket objects using the given address
family, socket type and protocol number. Address family, socket type
and protocol number are as for the \function{socket()} function above.
Availability: \UNIX.
\versionadded{2.3}
\end{funcdesc}
\begin{funcdesc}{fromfd}{fd, family, type\optional{, proto}}
Build a socket object from an existing file descriptor (an integer as
returned by a file object's \method{fileno()} method). Address family,