Share via


Determining Local and Remote Names

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The WSPGetSockName function is used to retrieve the local address for bound sockets. This is especially useful when a WSPConnect call has been made without doing a WSPBind first; WSPGetSockName provides the only means to determine the local association that has been set implicitly by the provider.

After a connection has been set up, WSPGetPeerName can be used to determine the address of the peer to which a socket is connected.

See Also

Concepts

Socket Connections on Connection-Oriented Protocols