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