P_net_shutdown 3porty 2011-05-28 libporty manual

NAME

P_net_shutdown

SYNPOSIS

#include <libporty/net/network.h>

int P_net_shutdown (P_net_socket sock , int how );

Link with -lporty_net

DESCRIPTION

Shut down socket sock for writing, reading or both directions. For further information please refer to shutdown(2).

Argument how must be one of P_SHUT_RD, P_SHUT_WR, P_SHUT_RDWR. These constants are aliases to the system-dependen constant anames (prefixed by SHUT_ or SD_) or are hardwired integers on systems not providing constants.

RETURN VALUE

Returns 0 on success.

P_net_shutdown 3porty 2011-05-28 libporty manual