mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Updated connect_ex() documentation based on comments in the newgroup
(M.-A. Lemburg and GvR).
This commit is contained in:
parent
a871c2e747
commit
b0bc7f2d6c
1 changed files with 3 additions and 1 deletions
|
@ -233,7 +233,9 @@ above.)
|
||||||
|
|
||||||
\begin{methoddesc}[socket]{connect_ex}{address}
|
\begin{methoddesc}[socket]{connect_ex}{address}
|
||||||
Like \code{connect(\var{address})}, but return an error indicator
|
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}
|
operation succeeded, otherwise the value of the \cdata{errno}
|
||||||
variable. This is useful, e.g., for asynchronous connects.
|
variable. This is useful, e.g., for asynchronous connects.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue