mswsock.h header

This header is used by Windows Sockets 2. For more information, see:

mswsock.h contains the following programming interfaces:

Functions

 
AcceptEx

The AcceptEx function (mswsock.h) accepts a new connection, returns the local and remote address, and receives the first block of data sent by the client application.
GetAcceptExSockaddrs

The GetAcceptExSockaddrs function (mswsock.h) parses data obtained from a call to the AcceptEx function and passes local and remote addresses to a sockaddr structure.
TransmitFile

The TransmitFile function (mswsock.h) transmits file data over a connected socket handle.
WSARecvEx

The WSARecvEx function (mswsock.h) receives data from a connected socket or a bound connectionless socket.

Callback functions

 
LPFN_CONNECTEX

The ConnectEx function establishes a connection to a specified socket, and optionally sends data once the connection is established.
LPFN_DISCONNECTEX

Closes a connection on a socket, and allows the socket handle to be reused.Note  This function is a Microsoft-specific extension to the Windows Sockets specification.
LPFN_RIOCLOSECOMPLETIONQUEUE

Closes an existing completion queue used for I/O completion notification by send and receive requests with the Winsock registered I/O extensions.
LPFN_RIOCREATECOMPLETIONQUEUE

Creates an I/O completion queue of a specific size for use with the Winsock registered I/O extensions.
LPFN_RIOCREATEREQUESTQUEUE

Creates a registered I/O socket descriptor using a specified socket and I/O completion queues for use with the Winsock registered I/O extensions.
LPFN_RIODEQUEUECOMPLETION

Removes entries from an I/O completion queue for use with the Winsock registered I/O extensions.
LPFN_RIODEREGISTERBUFFER

Deregisters a registered buffer used with the Winsock registered I/O extensions.
LPFN_RIONOTIFY

Registers the method to use for notification behavior with an I/O completion queue for use with the Winsock registered I/O extensions.
LPFN_RIORECEIVE

Receives network data on a connected registered I/O TCP socket or a bound registered I/O UDP socket for use with the Winsock registered I/O extensions.
LPFN_RIORECEIVEEX

Receives network data on a connected registered I/O TCP socket or a bound registered I/O UDP socket with additional options for use with the Winsock registered I/O extensions.
LPFN_RIOREGISTERBUFFER

Registers a RIO_BUFFERID, a registered buffer descriptor, with a specified buffer for use with the Winsock registered I/O extensions.
LPFN_RIORESIZECOMPLETIONQUEUE

Resizes an I/O completion queue to be either larger or smaller for use with the Winsock registered I/O extensions.
LPFN_RIORESIZEREQUESTQUEUE

Resizes a request queue to be either larger or smaller for use with the Winsock registered I/O extensions.
LPFN_RIOSEND

Sends network data on a connected registered I/O TCP socket or a bound registered I/O UDP socket for use with the Winsock registered I/O extensions.
LPFN_RIOSENDEX

Sends network data on a connected registered I/O TCP socket or a bound registered I/O UDP socket with additional options for use with the Winsock registered I/O extensions.
LPFN_TRANSMITPACKETS

Transmits in-memory data or file data over a connected socket.
LPFN_WSARECVMSG

*LPFN_WSARECVMSG* is a function pointer type. You implement a matching WSARecvMsg callback function in your app. The system uses your callback function to transmit to you in-memory data, or file data, over a connected socket.

Structures

 
RIO_EXTENSION_FUNCTION_TABLE

Contains information on the functions that implement the Winsock registered I/O extensions.
RIO_NOTIFICATION_COMPLETION

Specifies the method for I/O completion to be used with a RIONotify function for sending or receiving network data with the Winsock registered I/O extensions.
TRANSMIT_FILE_BUFFERS

The TRANSMIT_FILE_BUFFERS structure (mswsock.h) specifies data to be transmitted before and after file data during a TransmitFile function file transfer operation.
TRANSMIT_PACKETS_ELEMENT

Specifies a single data element to be transmitted by the TransmitPackets function.

Enumerations

 
RIO_NOTIFICATION_COMPLETION_TYPE

Specifies the type of completion queue notifications to use with the RIONotify function when sending or receiving data using the Winsock registered I/O extensions.