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 Data Transport functions exposed by Ws2spi.h.

Function Description

WSPAccept

An incoming connection is acknowledged and associated with an immediately created socket. The original socket is returned to the listening state. This function also allows for conditional acceptance.

WSPBind

Assigns a local name to an unnamed socket.

WSPCleanup

Signs off from the underlying Windows Sockets service provider.

WSPCloseSocket

Removes a socket from the per-process object reference table. Only blocks if SO_LINGERis set with a nonzero time-out on a blocking socket.

WSPConnect

Initiates a connection on the specified socket. This function also allows for exchange of connect data.

WSPEnumNetworkEvents

Discovers occurrences of network events.

WSPEventSelect

Associates network events with an event object.

WSPGetPeerName

Retrieves the name of the peer connected to the specified socket.

WSPGetSockName

Retrieves the local address to which the specified socket is bound.

WSPGetSockOpt

Retrieves options associated with the specified socket.

WSPIoctl

Provides control for sockets.

WSPListen

Listens for incoming connections on a specified socket.

WSPRecv

Receives data from a connected or unconnected socket. This function accommodates scatter/gather I/O, overlapped sockets, and provides the flags parameter as IN/OUT.

WSPRecvFrom

Receives data from either a connected or unconnected socket. This function accommodates scatter/gather I/O, overlapped sockets and provides the flags parameter as IN/OUT.

WSPSelect

Performs synchronous I/O multiplexing.

WSPSend

Sends data to a connected socket. This function also accommodates scatter/gather I/O and overlapped sockets.

WSPSendTo

Sends data to either a connected or unconnected socket. This function also accommodates scatter/gather I/O and overlapped sockets.

WSPSetSockOpt

Stores options associated with the specified socket.

WSPShutdown

Shuts down part of a full-duplex connection.

WSPSocket

A socket creation function that takes a WSAPROTOCOL_INFOWstructure as input and allows overlapped sockets to be created.

WSPStartup

Initializes the underlying Windows Sockets service provider.

See Also