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

Copy
int shutdown(
    SOCKET s,
    int how
);

Parameters

s

Descriptor identifying the s socket.

how

Specifies what to shut down on the socket:

Any network requests for a direction will return an error value if the direction has been shut down.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Winsock2.h RtTcpipApi.lib