diff options
author | Guido van Rossum <guido@python.org> | 1994-09-07 14:39:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-09-07 14:39:14 (GMT) |
commit | 91951481b8b7bf134ed5c662373164d205ab8046 (patch) | |
tree | 1d5c9371987656408be32bf99be6b0877157c76f /Doc | |
parent | 1662dd5a3d5301a54f15f861a5d24c179bf67bca (diff) | |
download | cpython-91951481b8b7bf134ed5c662373164d205ab8046.zip cpython-91951481b8b7bf134ed5c662373164d205ab8046.tar.gz cpython-91951481b8b7bf134ed5c662373164d205ab8046.tar.bz2 |
added Tommy Burnette's setblocking() method
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libsocket.tex | 9 | ||||
-rw-r--r-- | Doc/libsocket.tex | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 244ef67..60b9d15 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -214,6 +214,15 @@ remote socket, since the destination socket is specified by (The format of \var{address} depends on the address family -- see above.) \end{funcdesc} +\begin{funcdesc}{setblocking}{flag} +Set blocking or non-blocking mode of the socket: if \var{flag} is 0, +the socket is set to non-blocking, else to blocking mode. Initially +all sockets are in blocking mode. In non-blocking mode, if a +\code{recv} call doesn't find any data, or if a \code{send} call can't +immediately dispose of the data, a \code{socket.error} exception is +raised; in blocking mode, the calls block until they can proceed. +\end{funcdesc} + \begin{funcdesc}{setsockopt}{level\, optname\, value} Set the value of the given socket option (see the \UNIX{} man page {\it setsockopt}(2)). The needed symbolic constants are defined in module diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex index 244ef67..60b9d15 100644 --- a/Doc/libsocket.tex +++ b/Doc/libsocket.tex @@ -214,6 +214,15 @@ remote socket, since the destination socket is specified by (The format of \var{address} depends on the address family -- see above.) \end{funcdesc} +\begin{funcdesc}{setblocking}{flag} +Set blocking or non-blocking mode of the socket: if \var{flag} is 0, +the socket is set to non-blocking, else to blocking mode. Initially +all sockets are in blocking mode. In non-blocking mode, if a +\code{recv} call doesn't find any data, or if a \code{send} call can't +immediately dispose of the data, a \code{socket.error} exception is +raised; in blocking mode, the calls block until they can proceed. +\end{funcdesc} + \begin{funcdesc}{setsockopt}{level\, optname\, value} Set the value of the given socket option (see the \UNIX{} man page {\it setsockopt}(2)). The needed symbolic constants are defined in module |