summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-05-06 22:03:50 (GMT)
committerFred Drake <fdrake@acm.org>1999-05-06 22:03:50 (GMT)
commitb0bc7f2d6cd1872613ece64da6ca6e7f8a73f331 (patch)
treecb0abeb9a5975015d59a3937e971b89473199d9d
parenta871c2e747d2ce0dd1029a0d7e9ed1b9f66b4444 (diff)
downloadcpython-b0bc7f2d6cd1872613ece64da6ca6e7f8a73f331.zip
cpython-b0bc7f2d6cd1872613ece64da6ca6e7f8a73f331.tar.gz
cpython-b0bc7f2d6cd1872613ece64da6ca6e7f8a73f331.tar.bz2
Updated connect_ex() documentation based on comments in the newgroup
(M.-A. Lemburg and GvR).
-rw-r--r--Doc/lib/libsocket.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex
index 57b8262..64a659a 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}