Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Calling close() on a socket closes both halves of the bidirectional communication channel. Sometimes, it is useful to close one half of the connection, so that data can be transmitted in just one direction through the socket. The shutdown() system call provides this functionality.
#include <sys/socket.h> int shutdown(int sockfd, int how);