"Thomas Heller" email@example.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.