ID EN
Socket

shutdown

Python 3.11

Shut down one or both halves of the connection. If how is SHUT_RD, further receives are disallowed. If how is SHUT_WR, further sends are disallowed. If how is SHUT_RDWR, further sends and receives are disallowed.

Syntax

PYTHON
socket.shutdown(how)

See Also

Availability