This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Shut down part of a full-duplex connection
#include <sys/socket.h> int shutdown( int s, int how );
If how is: | The TCP/IP manager won't allow: |
---|---|
SHUT_RD | Further receives |
SHUT_WR | Further sends |
SHUT_RDWR | Further sends and receives |
libsocket
Use the -l socket option to qcc to link against this library.
The shutdown() call shuts down all or part of a full-duplex connection on the socket associated with s.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |