win32file.WSAEnumNetworkEvents
dict = WSAEnumNetworkEvents(s, hEvent )
Return network events that caused the event associated with the socket to be signaled.
Parameters
Return Value
A dictionary mapping network events that occured for the specified socket since the last call to this function (e.g. FD_READ, FD_WRITE) to their associated error code, or 0 if the event occured without an error. The events returned are a subset of events previously registered for this socket with WSAEventSelect.