diff options
author | Guido van Rossum <guido@python.org> | 1997-11-18 15:29:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-11-18 15:29:20 (GMT) |
commit | f7790c608d0c25c1be1a5712188b0fdebbc1f3db (patch) | |
tree | ac13ebfb67773818a485f8004f077479e577005c /Doc/libsocket.tex | |
parent | 364e643fddf8a0365509033b2fd588ecbf84b7dc (diff) | |
download | cpython-f7790c608d0c25c1be1a5712188b0fdebbc1f3db.zip cpython-f7790c608d0c25c1be1a5712188b0fdebbc1f3db.tar.gz cpython-f7790c608d0c25c1be1a5712188b0fdebbc1f3db.tar.bz2 |
Document s.connect_ex(), which does not raise an exception on error.
Diffstat (limited to 'Doc/libsocket.tex')
-rw-r--r-- | Doc/libsocket.tex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/libsocket.tex b/Doc/libsocket.tex index ea6cae3..bbcc7f1 100644 --- a/Doc/libsocket.tex +++ b/Doc/libsocket.tex @@ -201,6 +201,13 @@ Connect to a remote socket at \var{address}. (The format of \var{address} depends on the address family --- see above.) \end{funcdesc} +\begin{funcdesc}{connect_ex}{address} +Likecode{connect(\var{address})}, but return an error indicator +instead of raising an exception. The error indicator is 0 if the +operation succeeded, otherwise the value of the \code{errno} +variable. This is useful e.g. for asynchronous connects. +\end{funcdesc} + \begin{funcdesc}{fileno}{} Return the socket's file descriptor (a small integer). This is useful with \code{select}. |