Home | Trees | Indices | Help |
---|
|
object --+ | _SocketWrapper --+ | LineReceiver
A socket wrapper for line buffering.
Iterating over a LineBuffer will yield each line available in the buffer. If the socket is closed, iterating over a LineBuffer will raise a SocketClosedError.
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
Inherited from |
Method Details |
Wrap a socket for easier line buffering of incoming data. The buffer_size parameter indicates how much should be read from the socket at a time. If the auto_pump parameter is True, iterating over the LineReceiver and calling readline will automatically try to read new socket data into the buffer first.
|
Read a line out of the buffer. If the socket is closed, this function returns an empty string. If no line is available, socket.error is raised with an errno of EAGAIN. Otherwise, return the next line available in the buffer. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Aug 14 14:34:16 2010 | http://epydoc.sourceforge.net |