Windows-Specific Extension Functions (Windows CE 5.0)

Windows CE 5.0
Send Feedback

The following table shows the Windows-specific extension functions with a description of the purpose of each.

Programming elementDescription
WSAAcceptThis function conditionally accepts a connection based on the return value of a condition function and allows the transfer of connection data.
WSAAddressToStringThis function converts all parts of a sockaddr structure into a human-readable string representation of the address.
WSACleanupThis function terminates use of the ws2.dll.
WSACloseEventThis function closes an open event object handle.
WSAConnectThis function establishes a connection to another socket application and exchanges connect (Windows Sockets) data.
WSACreateEventThis function creates a new event object.
WSAEnumNameSpaceProvidersThis function retrieves information about available name spaces.
WSAEnumNetworkEventsThis function discovers occurrences of network events for the indicated socket, clear internal network event records, and reset event objects (optional).
WSAEnumProtocolsThis function retrieves information about available transport protocols.
WSAEventSelectThis function specifies an event object to be associated with the supplied set of FD_XXX network events.
__WSAFDIsSetThis function specifies whether a socket is included in a set of socket descriptors.
WSAGetLastErrorThis function gets the error status for the last operation that failed.
WSAGetOverlappedResultThis function returns the results of an overlapped operation on the specified socket.
WSAHtonlThis function converts a u_long from host byte order to network byte order.
WSAHtonsThis function converts a u_short from host byte order to network byte order.
WSAIoctlThis function allows for miscellaneous control of a socket.
WSAJoinLeafThis function joins a leaf node into a multipoint session, and exchanges connect data.
WSALookupServiceBegin (Windows Sockets)This function 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)This function is called after obtaining a handle from a previous call to the WSALookupServiceBegin (Windows Sockets) function to retrieve the requested service information.
WSANSPIoctlThis function enables developers to make I/O control calls to a registered namespace.
WSANtohlThis function converts a u_long from network byte order to host byte order.
WSANtohsThis function converts a u_short from network byte order to host byte order.
WSARecvThis function receives data from a connected socket.
WSARecvFromThis function receives data on a socket and stores the source address.
WSAResetEventThis function resets the state of the specified event object to nonsignaled.
WSASendThis function sends data on a connected socket.
WSASendToThis function sends data to a specific destination, using overlapped I/O where applicable.
WSASetEventThis function sets the state of the specified event object to signaled.
WSASetLastErrorThis function sets the error code that can be retrieved through the WSAGetLastError function.
WSASetService (Windows Sockets)This function registers or removes from the registry a service instance within one or more name spaces.
WSASocketThis function creates a socket that is bound to a specific transport service provider.
WSAStartupThis function initiates use of ws2.dll by a process.
WSAStringToAddressThis function converts a numeric string to a sockaddr structure suitable for passing to Windows Sockets routines that take such a structure.
WSAWaitForMultipleEventsThis function 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.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.