Windows-Specific Extension Functions (Compact 2013)
3/26/2014
This section discusses the Windows-specific extension functions.
In This Section
- WSAAccept
Conditionally accepts a connection based on the return value of a condition function and allows the transfer of connection data
WSAAsyncGetHostByName
Deprecated.Asynchronously retrieves information about a host that corresponds to a host name
- WSAAsyncSelect
Requests Windows message-based notifications of network events for a socket
- WSACancelAsyncRequest
Cancels an incomplete asynchronous operation
- WSAAddressToString
Converts all parts of a sockaddr structure into a human-readable string representation of the address
- WSACleanup
Terminates use of the ws2.dll
- WSACloseEvent
Closes an open event object handle
- WSAConnect
Establishes a connection to another socket application and exchanges connect (Windows Sockets) data
- WSACreateEvent
Creates a new event object
- WSAEnumNameSpaceProviders
Retrieves information about available name spaces
- WSAEnumNetworkEvents
Discovers occurrences of network events for the indicated socket, clear internal network event records, and reset event objects (optional)
- WSAEnumProtocols
Retrieves information about available transport protocols
- WSAEventSelect
Specifies an event object to be associated with the supplied set of FD_XXX network events
- WSAGetLastError
Gets the error status for the last operation that failed
- WSAGetOverlappedResult
Returns the results of an overlapped operation on the specified socket
- WSAHtonl
Converts a u_long from host byte order to network byte order
- WSAHtons
Converts a u_short from host byte order to network byte order
- WSAIoctl
This function allows for miscellaneous control of a socket
- WSAJoinLeaf
This function joins a leaf node into a multipoint session, and exchanges connect data
- WSALookupServiceBegin (Windows Sockets)
Initiates a client query that is constrained by the information contained within a WSAQUERYSET (Windows Sockets) structure. This function only returns a handle, which should be used by subsequent calls to the WSALookupServiceNext (Windows Sockets) function to get the actual results
- WSALookupServiceEnd (Windows Sockets)
This function is called to free the handle after previous calls to WSALookupServiceBegin (Windows Sockets) and WSALookupServiceNext (Windows Sockets)
WSALookupServiceNext (Windows Sockets)
Deprecated.This function is called after obtaining a handle from a previous call to the WSALookupServiceBegin (Windows Sockets) function to retrieve the requested service information
- WSANSPIoctl
This function enables developers to make I/O control calls to a registered namespace
- WSANtohl
Converts a u_long from network byte order to host byte order
- WSANtohs
Converts a u_short from network byte order to host byte order
- WSARecv
Receives data from a connected socket
- WSARecvFrom
Receives data on a socket and stores the source address
- WSAResetEvent
Resets the state of the specified event object to nonsignaled
- WSASend
Sends data on a connected socket
- WSASendTo
Sends data to a specific destination, using overlapped I/O where applicable
- WSASetEvent
Sets the state of the specified event object to signaled
- WSASetLastError
Sets the error code that can be retrieved through the WSAGetLastError function
WSASetService (Windows Sockets)
Registers or removes from the registry a service instance within one or more name spacesNote
This function is not supported for the default TCP/UDP provider. However, third parties can implement their own provider and have support for this function if they choose.
- WSASocket
Creates a socket that is bound to a specific transport service provider
- WSAStartup
Initiates use of ws2.dll by a process
- WSAStringToAddress
Converts a numeric string to a sockaddr structure suitable for passing to Windows Sockets routines that take such a structure
- WSAWaitForMultipleEvents
Waits for multiple events and returns either when one or all of the specified event objects are in the signaled state, or when the timeout interval expires