| Main index | Section 2 (System calls) | [日本語] | [한국인] | [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 | Return value and action |
| PF_INET | SOCK_DGRAM | IPPROTO_SCTP | |
| errno will be set to | |||
| EOPNOTSUPP. | |||
| PF_INET | SOCK_DGRAM | IPPROTO_UDP | |
| not be generated. | |||
| PF_INET | SOCK_STREAM | IPPROTO_SCTP | |
| PF_INET | SOCK_STREAM | IPPROTO_TCP | |
| PF_INET6 | SOCK_DGRAM | IPPROTO_SCTP | |
| errno will be set to | |||
| EOPNOTSUPP. | |||
| PF_INET6 | SOCK_DGRAM | IPPROTO_UDP | |
| not be generated. | |||
| PF_INET6 | SOCK_STREAM | IPPROTO_SCTP | |
| PF_INET6 | SOCK_STREAM | IPPROTO_TCP |
| [EBADF] | |
| The s argument is not a valid file descriptor. | |
| [EINVAL] | |
| The how argument is invalid. | |
| [EOPNOTSUPP] | |
| The socket associated with the file descriptor s does not support this operation. | |
| [ENOTCONN] | |
| The s argument specifies a SOCK_STREAM socket which is not connected. | |
| [ENOTSOCK] | |
| The s argument does not refer to a socket. | |
| SHUTDOWN (2) | March 5, 2007 |
| Main index | Section 2 (System calls) | [日本語] | [한국인] | [Deutsch] | options | ||
|
|
|||||||
Please direct any comments about this manual page service to this message board.
| “ | If at first you don't succeed, you must be a programmer. | ” |