Document bind-prepare-listen-accept-loop.

This commit is contained in:
mainzelm 2003-02-20 17:25:46 +00:00
parent da76638c82
commit a375d4bd1c
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,15 @@ This procedure does not return, but loops indefinitely accepting
connections from client programs.
\end{desc}
\defun {bind-prepare-listen-accept-loop} {protocol-family prepare proc arg} {does-not-return}
\begin{desc}
Same as \ex{bind-listen-accept-loop} but runs the thunk
\var{prepare} after binding the address and before entering the
loop. The typical task of the \var{prepare} procedure is to change
the user id from the superuser to some unprivileged id once the
address has been bound.
\end{desc}
\section{Sockets}
\defun {create-socket} {protocol-family type [protocol]} {socket}