TimeoutSocket
index
/home/groups/p/py/pywebsvcs/src/wstools/TimeoutSocket.py

Based on code from timeout_socket.py, with some tweaks for compatibility.
These tweaks should really be rolled back into timeout_socket, but it's
not totally clear who is maintaining it at this point. In the meantime,
we'll use a different module name for our tweaked version to avoid any
confusion.
 
The original timeout_socket is by:
 
     Scott Cotton <scott@chronis.pobox.com>
     Lloyd Zusman <ljz@asfast.com>
     Phil Mayes <pmayes@olivebr.com>
     Piers Lauder <piers@cs.su.oz.au>
     Radovan Garabik <garabik@melkor.dnp.fmph.uniba.sk>

 
Modules
       
errno
select
socket
string

 
Classes
       
exceptions.Exception
TimeoutError
TimeoutSocket

 
class TimeoutError(exceptions.Exception)
     Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class TimeoutSocket
    A socket imposter that supports timeout limits.
 
  Methods defined here:
__getattr__(self, name)
__init__(self, timeout=20, sock=None)
close(self)
connect(self, *addr)
flush(self)
makefile(self, mode='r', buffsize=-1)
read(self, n=-1)
readline(self, limit=-1)
readlines(self, sizehint=0)
recv(self, amt, flags=0)
send(self, data, flags=0)
write(self, data)
writelines(self, list)

Data and other attributes defined here:
buffsize = 4096
handles = 1

 
Data
        WSAEINVAL = 10022
ident = '$Id: TimeoutSocket.py 237 2003-05-20 21:10:14Z warnes $'