Shut down part of a full-duplex connection.
If shutdown_read is TRUE then the receiving side of the connection
is shut down, and further reading is disallowed.
If shutdown_write is TRUE then the sending side of the connection
is shut down, and further writing is disallowed.
It is allowed for both shutdown_read and shutdown_write to be TRUE.
One example where this is used is graceful disconnect for TCP connections
where you close the sending side, then wait for the other side to close
the connection, thus ensuring that the other side saw all sent data.
Since 2.22
Shut down part of a full-duplex connection. If shutdown_read is TRUE then the receiving side of the connection is shut down, and further reading is disallowed. If shutdown_write is TRUE then the sending side of the connection is shut down, and further writing is disallowed. It is allowed for both shutdown_read and shutdown_write to be TRUE. One example where this is used is graceful disconnect for TCP connections where you close the sending side, then wait for the other side to close the connection, thus ensuring that the other side saw all sent data. Since 2.22