Main index | Section 2 | 日本語 | Deutsch | Options |
#include <sys/types.h>
#include <sys/socket.h>
SHUT_RD | Further receives will be disallowed. |
SHUT_WR | Further sends will be disallowed. This may cause actions specific to the protocol family of the socket s to happen; see IMPLEMENTATION NOTES. |
SHUT_RDWR | |
Further sends and receives will be disallowed. Implies SHUT_WR. | |
If the file descriptor s is associated with a SOCK_STREAM socket, all or part of the full-duplex connection will be shut down.
Domain | Type | Protocol | Action |
PF_INET | SOCK_DGRAM | IPPROTO_SCTP | Failure, as socket is not connected. |
PF_INET | SOCK_DGRAM | IPPROTO_UDP | Failure, as socket is not connected. |
PF_INET | SOCK_STREAM | IPPROTO_SCTP | Send queued data and tear down association. |
PF_INET | SOCK_STREAM | IPPROTO_TCP | Send queued data, wait for ACK, then send FIN. |
PF_INET6 | SOCK_DGRAM | IPPROTO_SCTP | Failure, as socket is not connected. |
PF_INET6 | SOCK_DGRAM | IPPROTO_UDP | Failure, as socket is not connected. |
PF_INET6 | SOCK_STREAM | IPPROTO_SCTP | Send queued data and tear down association. |
PF_INET6 | SOCK_STREAM | IPPROTO_TCP | Send queued data, wait for ACK, then send FIN. |
[EBADF] | |
The s argument is not a valid file descriptor. | |
[EINVAL] | |
The how argument is invalid. | |
[ENOTCONN] | |
The s argument specifies a socket which is not connected. | |
[ENOTSOCK] | |
The s argument does not refer to a socket. | |
SHUTDOWN (2) | July 27, 2015 |
Main index | Section 2 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.