Go to the previous, next section.
int shutdown(int s, int how);
s: [in] the socket to shutdown.
how: [in] how to do it.
Terminates the communication on a socket. The possible values for how are:
0
1
2
On success zero is returned. On error, -1 is returned and errno
is
set to one of the following values:
EBADF
, ENOTSOCK
or ENOTCONN
.
Go to the previous, next section.