Determining Local and Remote Names (Windows Embedded CE 6.0)

1/6/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