This method retrieves the local name of a socket.
Header file: | Afxsock.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
BOOL GetSockName( CString& rSocketAddress, UINT& rSocketPort );
BOOL GetSockName( SOCKADDR* lpSockAddr, int* lpSockAddrLen );
CAsyncSocket::Bind, CAsyncSocket::Create, CAsyncSocket::GetPeerName