Winsock SPI Functions (Compact 2013)
3/26/2014
This section discusses the Winsock SPI functions.
In This Section
- NSPCleanup
Terminates the use of a particular Windows Sockets name space service provider
- NSPGetServiceClassInfo
Retrieves all the pertinent class information (schema) pertaining to the name-space provider
- NSPInstallServiceClass
Registers service class schema within the name-space providers
- NSPLookupServiceBegin
Initiates a client query that is constrained by the information contained within a WSAQUERYSET (Windows Sockets) structure
- NSPLookupServiceEnd
Frees the handle after previous calls to NSPLookupServiceBegin and NSPLookupServiceNext
- NSPLookupServiceNext
Called after obtaining a handle from a previous call to NSPLookupServiceBegin in order to retrieve the requested service information
- NSPRemoveServiceClass
Permanently removes a specified service class from the name space
- NSPSetService
This function registers or deregisters a service instance within a name space
- NSPStartup
Retrieves the dynamic information about a provider, such as the list of the DLL entry points
- WPUCloseEvent
Closes an open event object handle
- WPUCloseSocketHandle
Closes an existing socket handle
- WPUCompleteOverlappedRequest
Performs overlapped I/O completion notification for overlapped I/O operations
- WPUCreateEvent
Creates a new event object
- WPUCreateSocketHandle
Creates a new socket handle
- WPUFDIsSet
Checks the membership of the specified socket handle
- WPUGetProviderPath
Retrieves the DLL path for the specified provider
WPUQueryBlockingCallback
Returns a pointer to a callback function the service provider should invoke periodically while servicing blocking operationsNote
This function is not supported for the default TCP/UDP provider in Windows Embedded Compact. However, third parties can implement their own provider and have support for this function if they choose.
- WPUQuerySocketHandleContext
Queries the context value associated with the specified socket handle
- WPUResetEvent
Resets the state of the specified event object to nonsignaled
- WPUSetEvent
Sets the state of the specified event object to signaled
- WSCDeinstallProvider
Removes the specified transport provider from the system configuration database
- WSCEnumProtocols
Retrieves information about available transport protocols
- WSCInstallNameSpace
Installs a name-space provider
- WSCInstallProvider
Installs the specified transport provider into the system configuration database
- WSCUnInstallNameSpace
Uninstalls the indicated name-space provider
- WSPAccept
Conditionally accepts a connection based on the return value of a condition function
- WSPAddressToString
Converts all parts of a sockaddr structure into a human readable-numeric string representation of the address
- WSPAsyncSelect
Requests Windows message-based event notification of network events for a socket
- WSPBind
Associates a local address (that is, name) with a socket
- WSPCleanup
Terminates use of the Windows Sockets service provider
- WSPCloseSocket
Closes a socket
- WSPConnect
Establishes a connection to a peer, and exchanges connect data
- WSPDuplicateSocket
Returns a structure that can be used to create a new socket descriptor for a shared socket
- WSPEnumNetworkEvents
Reports occurrences of network events for the indicated socket
- WSPEventSelect
Specifies an event object to be associated with the supplied set of network events
- WSPGetOverlappedResult
Returns the results of an overlapped operation on the specified socket
- WSPGetPeerName
Gets the address of the peer to which a socket is connected
- WSPGetSockName
Gets the local name for a socket
- WSPGetSockOpt
Retrieves a socket option
- WSPIoctl
Controls the mode of a socket
- WSPJoinLeaf
Joins a leaf node into a multipoint session, and exchanges connect data
- WSPListen
Establishes a socket to listen for incoming connections
- WSPRecv
Receives data on a socket
WSPRecvDisconnect
Terminates reception on a socket and retrieves the disconnect data, if the socket is connection orientedNote
This function is not supported for the default TCP/UDP provider in Windows Embedded Compact. However, third parties can implement their own provider and have support for this function if they choose.
- WSPRecvFrom
Receives a datagram and stores the source address
- WSPSelect
Determines the status of one or more sockets
- WSPSend
Sends data on a connected socket
WSPSendDisconnect
Initiates termination of the connection for the socket and sends disconnect dataNote
This function is not supported for the default TCP/UDP provider in Windows Embedded Compact. However, third parties can implement their own provider and have support for this function if they choose.
- WSPSendTo
Sends data to a specific destination using overlapped I/O
- WSPSetSockOpt
Sets a socket option
- WSPShutdown
Disables sends and/or receives on a socket
- WSPSocket
Creates a socket
- WSPStartup
Initiates use of a Windows Sockets service provider by a client
- WSPStringToAddress
Converts a human-readable numeric string to a socket address structure (sockaddr) suitable to passing to Windows Sockets routines that take such a structure