Contents

sock_shutdown

Declaration

errno_t sock_shutdown(socket_t so, int how);

Parameters

  • so:

    The socket.

  • how:

    SHUT_RD - shutdown receive. SHUT_WR - shutdown send. SHUT_RDWR - shutdown both.

Return Value

0 on success otherwise the errno error.

Discussion

Shutdown one or both directions of a connection. See 'man 2 shutdown' for more information.

See Also

Network Kernel Extensions