summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r--Doc/library/socket.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 7edd4ba..faa260e 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1087,6 +1087,16 @@ to sockets.
to decode C structures encoded as byte strings).
+.. method:: socket.getblocking()
+
+ Return ``True`` if socket is in blocking mode, ``False`` if in
+ non-blocking.
+
+ This is equivalent to checking ``socket.gettimeout() == 0``.
+
+ .. versionadded:: 3.7
+
+
.. method:: socket.gettimeout()
Return the timeout in seconds (float) associated with socket operations,