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