shutdown
shutdown causes part or all of a full-duplex socket to be shutdown. A call to shutdown can cause a socket to be closed for sending, receiving or both. Note that shutdown does not close a socket completely or release its resources. Therefore, a call to closesocket is still required.
Declaration
int shutdown( SOCKET s, int how );
Parameters
s
Descriptor identifying the s socket.
how
Specifies what to shutdown on the socket:
- 0= shutdown receiving
- 1=shutdown sending
- 2= shutdown both receiving and sending.
Any network requests for a direction will return an error value if the direction has been shutdown.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Winsock2.h |
Library | RtTcpip.lib |