Package qbuf :: Module socket_support :: Class _SocketWrapper
[hide private]

Class _SocketWrapper

source code

object --+
         |
        _SocketWrapper
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, sock, buffer_size=4096)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
close(self)
Closes the wrapped socket.
source code
 
fileno(self)
Returns the wrapped socket's fileno.
source code
 
pump_buffer(self)
Try to read from the wrapped socket into the buffer.
source code
 
send(self, data)
Calls send on the wrapped socket.
source code
 
sendall(self, data)
Calls sendall on the wrapped socket.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sock, buffer_size=4096)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

pump_buffer(self)

source code 

Try to read from the wrapped socket into the buffer.

Returns True if the socket is still open, and False otherwise.