[Python-checkins] python/dist/src/Lib socket.py,1.21,1.22

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 18 Jul 2002 10:08:37 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv8306/Lib

Modified Files:
	socket.py 
Log Message:
Add default timeout functionality.  This adds setdefaulttimeout() and
getdefaulttimeout() functions to the socket and _socket modules, and
appropriate tests.


Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** socket.py	13 Jun 2002 22:18:39 -0000	1.21
--- socket.py	18 Jul 2002 17:08:34 -0000	1.22
***************
*** 22,25 ****
--- 22,27 ----
  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!