Contents

sock_setsockopt

Declaration

errno_t sock_setsockopt(socket_t so, int level, int optname, const void *optval, int optlen);

Parameters

  • so:

    The socket.

  • level:

    Level of the socket option.

  • optname:

    The option name.

  • optval:

    The option value.

  • optlen:

    The length of optval.

Return Value

0 on success otherwise the errno error.

Discussion

Sets a socket option. See 'man 2 setsockopt'.

See Also

Network Kernel Extensions