Share via


Generic Data Transport Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

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_LINGER is 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_INFOW structure as input and allows overlapped sockets to be created.

WSPStartup

Initializes the underlying Windows Sockets service provider.

See Also

Concepts

Summary of SPI Functions