Retrieves the socket options set for a specified socket.
#include <prio.h> PRStatus PR_SetSocketOption( PRFileDesc *fd, PRSocketOptionData *data);
The function has the following parameters:
fd
PRFileDesc
object representing the socket whose options are to be set.data
PRSocketOptionData
specifying the options to set.PR_SUCCESS
.PR_FAILURE
. The reason for the failure can be obtained by calling PR_GetError
.On input, the caller must set both the option
and value
fields of the PRSocketOptionData
object pointed to by the data
parameter.