The new API functions for Windows Sockets 2 are summarized in the following
table.
Function
| Description
|
WSAAccept1
| An extended version of accept which allows for conditional acceptance and socket grouping.
|
WSACloseEvent
| Destroys an event object.
|
WSAConnect1
| An extended version of connect which allows for exchange of connect data and QOS specification.
|
WSACreateEvent
| Creates an event object.
|
WSADuplicateSocket
| Creates a new socket descriptor for a shared socket.
|
WSAEnumNetworkEvents
| Discovers occurrences of network events.
|
WSAEnumProtocols
| Retrieves information about each available protocol.
|
WSAEventSelect
| Associates network events with an event object.
|
WSAGetOverlappedResult
| Gets completion status of overlapped operation.
|
WSAGetQOSByName
| Supplies QOS parameters based on a well-known service name.
|
WSAHtonl
| Extended version of htonl.
|
WSAHtons
| Extended version of htons.
|
WSAIoctl1
| Overlapped-capable version of ioctlsocket.
|
WSAJoinLeaf1
| Joins a leaf node into a multipoint session.
|
WSANtohl
| Extended version of ntohl.
|
WSANtohs
| Extended version of ntohs.
|
WSARecv1
| An extended version of recv which accommodates scatter/gather I/O, overlapped sockets, and provides the flags parameter as IN OUT.
|
WSARecvDisconnect
| Terminates reception on a socket and retrieves the disconnect data, if the
socket is connection-oriented.
|
WSARecvFrom1
| An extended version of recvfrom which accommodates scatter/gather I/O, overlapped sockets, and provides the flags parameter as IN OUT.
|
WSAResetEvent
| Resets an event object.
|
WSASend1
| An extended version of send which accommodates scatter/gather I/O and overlapped sockets.
|
WSASendDisconnect
| Initiates termination of a socket connection and optionally sends disconnect
data.
|
WSASendTo1
| An extended version of sendto which accommodates scatter/gather I/O and overlapped sockets.
|
WSASetEvent
| Sets an event object.
|
WSASocket
| An extended version of socket which takes a WSAPROTOCOL_INFO structure as input and allows overlapped sockets to be created. Also allows
socket groups to be formed.
|
WSAWaitForMultipleEvents1
| Blocks on multiple event objects.
|