Gets the network address of the connected peer.
#include <prio.h> PRStatus PR_GetPeerName( PRFileDesc *fd, PRNetAddr *addr);
The function has the following parameters:
fd
PRFileDesc
object representing a socket.addr
PR_SUCCESS
.PR_FAILURE
. The reason for the failure can be obtained by calling PR_GetError
.