netclose(3) - Linux man page

Name

netclose - close an existing socket

Synopsis

#include "net.h"

int netclose (int s);

Description

netclose closes an existing socket.

Return Value

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

Errors

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

See Also

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

Author

LCG Grid Deployment Team