CAsyncSocket::GetSockName

This method retrieves the local name of a socket.

At a Glance

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

Syntax

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

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

See Also

CAsyncSocket::Bind, CAsyncSocket::Create, CAsyncSocket::GetPeerName