Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Closing a socket

&pagelevel(3)&pagelevel

If you no longer need a socket, you can close its descriptor with the close() function:

close(s);

This function is also part of the basic scope of the POSIX interface (see "close() - close socket" and the manual "C Library Functions for POSIX Applications").