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(
    __in SOCKET s,
    __in int how
);

Parameters

s

Descriptor identifying the s socket.

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.

IntervalZero.com | Support | Give Feedback