nn::socket::GetPeerName Function
s32 GetPeerName(
s32 s,
SockAddrIn * sockAddr
);
| 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. |
0 if successful. Gets the socket's remote address.
The remote address is the address of the communication target of the socket.
CONFIDENTIAL