Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

close() - close socket

&pagelevel(4)&pagelevel

#include <unistd.h>

int close(int s);

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.