Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This section lists the upcalls that service providers may make into the Windows Sockets client. Service providers receive an upcall dispatch table as a parameter to WSPStartup, and use entries in this table to make the upcalls. Therefore, a client does not need to export its WPU functions.

It is not mandatory that providers use all of these upcalls. The following table indicates which upcalls must be used and which are optional.

Function Description Status Significance

WPUCloseEvent

Closes an open event object handle.

Optional.

The provider may use an appropriate OS call instead.

WPUCloseSocketHandle

Closes a socket handle allocated by the Windows Sockets DLL.

Required.

Ws2.dll needs to query and/or modify internal state information associated with the socket handle.

WPUCreateEvent

Creates a new event object.

Optional.

The provider may use an appropriate OS call instead.

WPUCreateSocketHandle

Creates a new socket handle for non-IFS providers.

Required for non-IFS providers.

Ws2.dll needs to query and/or modify internal state information associated with the socket handle.

WPUFDIsSet

Checks the membership of the specified socket handle.

Optional.

This is just a convenience function that knows how to dig through FD SETstructures. A provider may need to dig through these structures explicitly anyway.

WPUQuerySocketHandleContext

Retrieves a socket's context value (non-IFS providers only).

Required for non-IFS providers.

Ws2.dll needs to query and/or modify internal state information associated with the socket handle.

WPUResetEvent

Resets an event object.

Optional.

The provider may use an appropriate OS call instead.

WPUSetEvent

Sets an event object.

Optional.

The provider may use an appropriate OS call instead.

See Also