Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <sys/socket.h>
int shutdown(int socket, int how);
#define _OE_SOCKETS
#include <sys/socket.h>
long shutdown(int *s, int how);
Special behavior for C++: To use this function with C++, you must use the _XOPEN_SOURCE_EXTENDED 1 feature test macro.
If successful, shutdown() returns 0.