nn::socket::GetPeerName Function

Syntax

s32 GetPeerName(
     s32 s,
     SockAddrIn * sockAddr
);

Arguments

Name Description
in s Specifies a socket descriptor. Specify a socket descriptor created using the Socket or Accept function.
in sockAddr Specifies a pointer to the socket address structure used to get the communication target's address information.

Return Values

Returns 0 if successful.

Description

Gets the socket's remote address.

The remote address is the address of the communication target of the socket.

See Also

GetSockName

Revision History

2010/06/14
Initial version.

CONFIDENTIAL