A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-September/028878.html below:

[Python-Dev] Assign to errno allowed?

[Python-Dev] Assign to errno allowed? [Python-Dev] Assign to errno allowed?Thomas Heller thomas.heller@ion-tof.com
Tue, 24 Sep 2002 16:51:48 +0200
From: "Martin v. Loewis" <martin@v.loewis.de>
> "Thomas Heller" <thomas.heller@ion-tof.com> writes:
> 
> > > Are you *sure* about that?
> [...}
> 
> > The select function returns the total number of socket handles that
> > are ready and contained in the fd_set structures, zero if the time
> > limit expired, or SOCKET_ERROR if an error occurred. If the return
> > value is SOCKET_ERROR, WSAGetLastError can be used to retrieve a
> > specific error code.
> 
> This is a strong indication, but not enough for certainty. It does not
> mention errno at all.

Before we dive into philosophical discussions about what this
sentence says, my interpretation would be:
If select() returns SOCKET_ERROR, you *should* call WSAGetLastError()
to get "details about the problem".

Thomas



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4