Platform SDK: Windows Sockets

Generic Data Transport Functions

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.
WSPAsyncSelect Performs asynchronous version of WSPSelect.
WSPBind Assigns a local name to an unnamed socket.
WSPCancelBlockingCall Cancels an outstanding blocking Windows Sockets call.
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 and QOS specification.
WSPDuplicateSocket Returns a WSAPROTOCOL_INFOW structure that can be used to create a new socket descriptor for a shared socket.
WSPEnumNetworkEvents Discovers occurrences of network events.
WSPEventSelect Associates network events with an event object.
WSPGetOverlappedResult Gets completion status of overlapped operation.
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.
WSPGetQOSByName Supplies QOS parameters based on a well-known service name.
WSPIoctl Provides control for sockets.
WSPJoinLeaf Joins a leaf node into a multipoint session.
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.
WSPRecvDisconnect Terminates reception on a socket, and retrieve the disconnect data if the socket is connection-oriented.
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.
WSPSendDisconnect Initiates termination of a socket connection and optionally send disconnect data.
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 which takes a WSAPROTOCOL_INFOW structure as input and allows overlapped sockets to be created.
WSPStartup Initializes the underlying Windows Sockets service provider.