Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libsocket.tex @ 10836:efd1573a4b03 legacy-trunk
Updated connect_ex() documentation based on comments in the newgroup
(M.-A. Lemburg and GvR).
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 06 May 1999 22:03:50 +0000 |
| parents | 299bf53e6861 |
| children | 245d2b605036 |
line wrap: on
line diff
--- a/Doc/lib/libsocket.tex Thu May 06 19:37:38 1999 +0000 +++ b/Doc/lib/libsocket.tex Thu May 06 22:03:50 1999 +0000 @@ -233,7 +233,9 @@ \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}
