Gets the network address of the connected peer.
#include <prio.h> PRStatus PR_GetPeerName( PRFileDesc *fd, PRNetAddr *addr);
The function has the following parameters:
- A pointer to a
PRFileDescobject representing a socket.
- On return, the address of the peer connected to the socket.
- If successful,
- If unsuccessful,
PR_FAILURE. The reason for the failure can be obtained by calling