shut down part of a full-duplex connection
#include <sys/socket.h> int shutdown( int s, int how );
The shutdown() call shuts down all or part of a full-duplex connection on the socket associated with s.
If how is: | Then Socket won't allow: |
---|---|
0 | further receives |
1 | further sends |
2 | further sends and receives |
If an error occurred, errno could contain:
POSIX 1003.1g (draft)
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
close() in the C Library Reference