SHUTDOWN()
this is used to close one side of a TCP connection. this ensures an orderly connection teardown
// 11. shutdown() - Close one side of the connection
if (shutdown(client_socket, SHUT_RDWR) < 0) {
perror("shutdown");
}
Last updated