Home | Trees | Indices | Help |
---|
|
object --+ | BufferedPipe
A buffer that obeys normal read (with timeout) & close semantics for a file or socket, but is fed data from another thread. This is used by Channel.
Instance Methods | |||
|
|||
|
|||
|
|||
bool |
|
||
str |
|
||
str |
|
||
|
|||
int |
|
||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Set an event on this buffer. When data is ready to be read (or the buffer has been closed), the event will be set. When no data is ready, the event will be cleared.
|
Feed new data into this pipe. This method is assumed to be called from a separate thread, so synchronization is done.
|
Returns true if data is buffered and ready to be read from this
feeder. A
|
Read data from the pipe. The return value is a string representing
the data received. The maximum amount of data to be received at once is
specified by The optional
|
Clear out the buffer and return all data that was in it.
|
Close this pipe object. Future calls to read after the buffer has been emptied will return immediately with an empty string. |
Return the number of bytes buffered.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Nov 1 22:14:17 2009 | http://epydoc.sourceforge.net |