The shutdown function disables sends or receives on a socket.
int WSAAPI shutdown( SOCKET s, int how );
int shutdown(int s, int how) => _shutdown(s, how);