This member function retrieves the local name for a socket.
BOOL GetSockName( CString& rSocketAddress, UINT& rSocketPort );
BOOL GetSockName( SOCKADDR* lpSockAddr, int* lpSockAddrLen );
Header file: | Afxsock.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
CAsyncSocket Overview, CAsyncSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Bind, CAsyncSocket::Create, CAsyncSocket::GetPeerName