Contents

sock_setpriv

Declaration

errno_t sock_setpriv(socket_t so, int on);

Parameters

  • so:

    The socket on which to modify the SS_PRIV flag.

  • on:

    Indicate whether or not the SS_PRIV flag should be set.

Return Value

0 on success otherwise the errno error.

Discussion

Set the privileged bit in the socket. Allows for operations that require root privileges.

See Also

Network Kernel Extensions