Shuts down (part of) a socket.
fn shutdown(sockfd: i32, how: i32) -> i32
The socket.
Which parts to shut down.
Returns success or an error value.
shutdown(2)