]> granicus.if.org Git - python/commitdiff
Updated connect_ex() documentation based on comments in the newgroup
authorFred Drake <fdrake@acm.org>
Thu, 6 May 1999 22:03:50 +0000 (22:03 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 6 May 1999 22:03:50 +0000 (22:03 +0000)
(M.-A. Lemburg and GvR).

Doc/lib/libsocket.tex

index 57b82625eaa3f14309331d150a5cc30c6edc4958..64a659ad0e0847a1d142b90a36b6db1c79c1478a 100644 (file)
@@ -233,7 +233,9 @@ above.)
 
 \begin{methoddesc}[socket]{connect_ex}{address}
 Like \code{connect(\var{address})}, but return an error indicator
-instead of raising an exception.  The error indicator is 0 if the
+instead of raising an exception for errors returned by the C-level
+\cfunction{connect()} call (other problems, such as ``host not found,''
+can still raise exceptions).  The error indicator is \code{0} if the
 operation succeeded, otherwise the value of the \cdata{errno}
 variable.  This is useful, e.g., for asynchronous connects.
 \end{methoddesc}