mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add default timeout functionality. This adds setdefaulttimeout() and
getdefaulttimeout() functions to the socket and _socket modules, and appropriate tests.
This commit is contained in:
parent
8b6ec79b74
commit
9d0c8cee66
3 changed files with 97 additions and 1 deletions
|
@ -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!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue