Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0bc7f2

Browse files
committed
Updated connect_ex() documentation based on comments in the newgroup
(M.-A. Lemburg and GvR).
1 parent a871c2e commit b0bc7f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/lib/libsocket.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ \subsection{Socket Objects}
233233

234234
\begin{methoddesc}[socket]{connect_ex}{address}
235235
Like \code{connect(\var{address})}, but return an error indicator
236-
instead of raising an exception. The error indicator is 0 if the
236+
instead of raising an exception for errors returned by the C-level
237+
\cfunction{connect()} call (other problems, such as ``host not found,''
238+
can still raise exceptions). The error indicator is \code{0} if the
237239
operation succeeded, otherwise the value of the \cdata{errno}
238240
variable. This is useful, e.g., for asynchronous connects.
239241
\end{methoddesc}

0 commit comments

Comments
 (0)