WSAError returns 2
Which OS are you seeing this? Do you have any winsock Layered Service
Provider installed on the machine? E.g., spyware, adsware, antivirus,
firewall, etc. Does this repro 100% for certain config?
This looks odd to me because winsock doesn't return this error code for a
connect() request.
Another possibility is that some one else in the same process corrupted the
LastErrorValue of the TEB of this thread after you call connect() and before
you call WSAGetLastError(). This is an unlikely scenario.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples (if any) are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm"
|