diff Doc/libsocket.tex @ 6587:e0e667bbc971 legacy-trunk

Document s.connect_ex(), which does not raise an exception on error.
author Guido van Rossum <guido@python.org>
date Tue, 18 Nov 1997 15:29:20 +0000
parents d311b68754c1
children c18501770895
line wrap: on
line diff
--- a/Doc/libsocket.tex	Tue Nov 18 15:28:46 1997 +0000
+++ b/Doc/libsocket.tex	Tue Nov 18 15:29:20 1997 +0000
@@ -201,6 +201,13 @@
 (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}.