win32file.WSAEventSelect

WSAEventSelect(socket, hEvent, networkEvents)

Specifies an event object to be associated with the supplied set of FD_XXXX network events.

Parameters

socket : PySocket

socket to attach to the event

hEvent : PyHandle

Event handle for the socket to become attached to.

networkEvents : int

A bitmask of network events that will cause hEvent to be signaled. e.g. (FD_CLOSE | FD_READ)