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:
Return type:

pywincffi.wintypes.structures.LPWSANETWORKEVENTS

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.
pywincffi.ws2_32.events.WSAGetLastError()[source]

Returns the last error status for a windows socket operation.

Module contents

Ws2_32 Sub-Package

Provides functions, constants and utilities that wrap functions provided by ws3_32.dll.