Skip to content

Commit

Permalink
Adding socket module shutdown() argument description
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien-Chen committed Aug 1, 2024
1 parent 60d0b96 commit a332097
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Doc/library/socket.rst
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ Constants

.. versionadded:: 3.12

.. data:: SHUT_RD
SHUT_WR
SHUT_RDWR
These argument are used to the `~socket.shutdown()`` method of socket object.

Functions
^^^^^^^^^
Expand Down Expand Up @@ -1968,9 +1972,9 @@ to sockets.

.. method:: socket.shutdown(how)

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

.. availability:: not WASI.
Expand Down

0 comments on commit a332097

Please sign in to comment.