pywincffi.ws2_32 package¶
Submodules¶
pywincffi.ws2_32.events module¶
Events¶
A module containing Windows functions for working with events.
-
pywincffi.ws2_32.events.
WSACreateEvent
()[source]¶ Creates a new event object.
Return type: pywincffi.wintypes.objects.WSAEVENT
Returns: Returns a handle to a new event object.
-
pywincffi.ws2_32.events.
WSAEnumNetworkEvents
(socket, hEventObject=None)[source]¶ Discovers occurrences of network events on the indicated
socket
, clears internal events and optionally resets event objects.Parameters: - socket (pywincffi.wintypes.objects.SOCKET) – The socket object to enumerate events for.
- hEventObject (pywincffi.wintypes.objects.WSAEVENT) – An optional handle identify an associated event object to be reset.
Return type: Returns:
-
pywincffi.ws2_32.events.
WSAEventSelect
(socket, hEventObject, lNetworkEvents)[source]¶ Specifies an event object to be associated with the specified set of FD_XXX network events.
Parameters: - socket (pywincffi.wintypes.objects.SOCKET) – The socket object to associate the selected network events with.
- hEventObject (pywincffi.wintypes.objects.WSAEVENT) – A handle which identifies the event object to be associated with the network events.
- lNetworkEvents (int) – A bitmask which specifies the combination of
FD_XXX
network events which the application has interest in.