Contents

sock_getsockopt

Declaration

errno_t sock_getsockopt(socket_t so, int level, int optname, 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, returns the actual length.

Return Value

0 on success otherwise the errno error.

Discussion

Retrieves a socket option. See 'man 2 getsockopt'.

See Also

Network Kernel Extensions