CAsyncSocket::GetSockName

This member function retrieves the local name for a socket.

Syntax

BOOL GetSockName( CString& rSocketAddress, UINT& rSocketPort );

BOOL GetSockName( SOCKADDR* lpSockAddr, int* lpSockAddrLen );

At a Glance

Header file: Afxsock.h
Platforms:
Versions: 2.0 and later
Complete documentation Visual C++ documentation

See Also

CAsyncSocket Overview, CAsyncSocket Member Functions, Windows Sockets Classes, CAsyncSocket::Bind, CAsyncSocket::Create, CAsyncSocket::GetPeerName