Package commons :: Module servers :: Class SocketStream
[hide private]
[frames] | no frames]

Class SocketStream

source code

object --+
         |
        SocketStream

Tool for reading lines from a socket.

Instance Methods [hide private]
 
__init__(self, socket)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
xreadlines(self)
Yields lines as they are received via the socket.
source code

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

Class Variables [hide private]
  chunk_size = 4096
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, socket)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

xreadlines(self)

source code 

Yields lines as they are received via the socket. Does NOT include the trailing newline character(s).