Added documentation for port->socket.
This commit is contained in:
parent
3717053d60
commit
897f40fb7a
|
@ -124,6 +124,16 @@ is preferred to explicitly closing the inport and outport because using
|
|||
|
||||
\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}
|
||||
|
||||
The format of a socket-address depends on the address family of the
|
||||
|
|
Loading…
Reference in New Issue