From: Fred Drake Date: Thu, 6 May 1999 22:03:50 +0000 (+0000) Subject: Updated connect_ex() documentation based on comments in the newgroup X-Git-Tag: v1.6a1~1370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0bc7f2d6cd1872613ece64da6ca6e7f8a73f331;p=python Updated connect_ex() documentation based on comments in the newgroup (M.-A. Lemburg and GvR). --- diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 57b82625ea..64a659ad0e 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -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}