P_net_close 3porty 2011-04-14 libporty manual

NAME

P_net_close

SYNPOSIS

#include <libporty/net/network.h>

int P_net_close (P_net_socket sock );

Link with -lporty_net

DESCRIPTION

Closes a network connection. This function is preferred over directly calling close(2) on the socket, since some systems (win32) do not support that. Additionally, P_net_close ensures proper termination of the socket shutting both it down both directions, which is required for receiving EOFs on some platforms.

RETURN VALUE

Returns 0 on success.

P_net_close 3porty 2011-04-14 libporty manual