Loading...
Select Version
&pagelevel(4)&pagelevel
|
Description
close() closes socket s, depending on the SO_LINGER option (see setsockopt()).
More general information on this function is available in the manual "C Library Functions for POSIX Applications".
Return value
0:
If successful.
-1:
If errors occur. errno is set to indicate the error.
Errors
EBADF
The s parameter is not a valid descriptor.