DOKK / manpages / debian 10 / liblcgdm-dev / netclose.3.en
NETCLOSE(3) Common Library Functions NETCLOSE(3)

netclose - close an existing socket

#include "net.h"

int netclose (int s);

netclose closes an existing socket.

This routine returns zero if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.

The function was interrupted by a signal.
s is not a valid descriptor.
s is not a socket.

close(2), closesocket(WNT), neterror(3)

LCG Grid Deployment Team

$Date: 2005/03/29 09:27:19 $ LCG