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