Initiates shutdown of sending or receiving channel of the socket.
This method corresponds to the shutdown() function of sockets API.
It initiates shutdown of sending or receiving channel of the socket.
After the channel is shut down, no sending or receiving can take place.
However, it's a designed scenario to shutdown the sending end, and then peek the remaining data using
ShutdownSocket method is optional, if you don't need the remaining data (or the application-level protocol shuts down the socket only after everything was sent or received), then there's no need to call ShutdownSocket. Close method will do everything itself in this case (unless Silent parameter of Close method is True).