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

Copy
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:

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