win32file.WSAEnumNetworkEvents

dict = WSAEnumNetworkEvents(s, hEvent )

Return network events that caused the event associated with the socket to be signaled.

Parameters

s : PySocket

Socket to check for netork events, previously registered for network event notification with WSAEventSelect.

hEvent : PyHANDLE

Optional handle to the event associated with socket s in the last call to WSAEventSelect. If specified, the event will be reset.

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.