Added documentation for port->socket.

This commit is contained in:
mainzelm 2002-04-16 09:04:13 +00:00
parent 3717053d60
commit 897f40fb7a
1 changed files with 10 additions and 0 deletions

View File

@ -124,6 +124,16 @@ is preferred to explicitly closing the inport and outport because using
\end{desc} \end{desc}
\defun {port->socket} {port protocol-family} {socket}
\begin{desc}
This procedure turns \var{port} into a socket object. The port's
underlying file descriptor must be a socket with protocol family
\var{protocol-family}. \ex{port->socket} comes in handy for writing
servers which run as children of \texttt{inetd}: after receiving a
connection \texttt{inetd} creates a socket and passes it as
standard input to its child.
\end{desc}
\section{Socket addresses} \section{Socket addresses}
The format of a socket-address depends on the address family of the The format of a socket-address depends on the address family of the