summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-18 17:08:35 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-18 17:08:35 (GMT)
commit9d0c8cee660030391e7017674f176fa2b496adde (patch)
treecec6c500182747d0e15985b54eddd72d3eb74224 /Lib/socket.py
parent8b6ec79b74284873696b24ab979fb1cb579b86f8 (diff)
downloadcpython-9d0c8cee660030391e7017674f176fa2b496adde.zip
cpython-9d0c8cee660030391e7017674f176fa2b496adde.tar.gz
cpython-9d0c8cee660030391e7017674f176fa2b496adde.tar.bz2
Add default timeout functionality. This adds setdefaulttimeout() and
getdefaulttimeout() functions to the socket and _socket modules, and appropriate tests.
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index bd0bfd7..c351a91 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -21,6 +21,8 @@ htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
ssl() -- secure socket layer support (only available if configured)
+socket.getdefaulttimeout() -- get the default timeout value
+socket.setdefaulttimeout() -- set the default timeout value
[*] not available on all platforms!