What OS you are using? in XP the code returned is ERROR_IO_PENDING
for WSA_IO_INCOMPLETE I need to add the case, how do I reproduce the problem?
---
Microsoft say this about Winsock error 996 - WSA_IO_INCOMPLETE:
The application has tried to determine the status of an overlapped
operation which is not yet completed. Applications that use
WSAGetOverlappedResult (with the fWait flag set to FALSE) in a polling
mode to determine when an overlapped operation has completed, get this
error code until the operation is complete. Note that this error is
returned by the operating system, so the error number may change in
future releases of Windows.
--
Vlad