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.
Syntax
int shutdown(
[in] SOCKET s,
[in] int how
);
Parameters
[in] s
A descriptor identifying the s socket.
[in] 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 | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
winsock2.h |
RttcpipApi.lib |