1.1.24.14 shutdown
C
int shutdown(int fd, int how)
Description
Shut down part of a full-duplex connection.
Parameters
Parameters | Description |
---|---|
fd | Socket file descriptor. |
how | Shutdown flags, must be SHUT_RDWR . |
Returns
0 - Success.
-1 - Error,
errno
set.
Remarks
errno | Description |
---|---|
EBADF | fd is not a valid file descriptor. |
ENOTSOCK | The file descriptor fd does not refer to a socket. |
ENOMEM | Insufficient memory is available. The socket cannot be created until sufficient resources are freed. |
EBADMSG | Bad message. |