diff --git a/doc/scsh-manual/network.tex b/doc/scsh-manual/network.tex index 493ca79..8df0b58 100644 --- a/doc/scsh-manual/network.tex +++ b/doc/scsh-manual/network.tex @@ -222,7 +222,20 @@ connected at all if the remote address is specified with each may be disassociated from a remote address by connecting to a null remote address. \end{desc} - +\defun {connect-socket-no-wait} {socket socket-address} \boolean +\defunx {connect-socket-successful?} {socket} \boolean +\begin{desc} + Just like \ex{connect-socket}, \ex{connect-socket-no-wait} sets up a + connection from a \var{socket} to a remote \var{socket-address}. + Unlike \ex{connect-socket}, \ex{connect-socket-no-wait} does not + block if it cannot establish the connection immediately. Instead it + will return \sharpf{} at once. In this case a subsequent \ex{select} on + the output port of the socket will report the output port as ready + as soon as the operation system has established the connection or as + soon as setting up the connection led to an error. Afterwards, the + procedure \ex{connect-socket-successful?} can be used to test + whether the connection has been established successfully or not. +\end{desc} \defun {bind-socket} {socket socket-address} \undefined \begin{desc} \ex{bind-socket} assigns a certain local \var{socket-address} to a