Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The WSPGetSockNamefunction is used to retrieve the local address for bound sockets. This is especially useful when a WSPConnectcall has been made without doing a WSPBindfirst; WSPGetSockNameprovides the only means to determine the local association that has been set implicitly by the provider.

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

See Also