Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module process :: Class ProcessReader |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ | ProcessReader
ProcessReader
I am a selectable representation of a process's output pipe, such as stdout and stderr.Method Summary | |
---|---|
Initialize, specifying a process to connect to. | |
Close my end of the pipe, signal the Process (which signals the ProcessProtocol). | |
dataReceived(self,
data)
| |
This is called when the pipe becomes readable. | |
Return the fileno() of my process's stderr. | |
Write as much as possible of the given data, immediately. | |
Inherited from FileDescriptor | |
Called after a loseConnection(), when all data has been written. | |
Called when data is available for writing. | |
Close the connection at the next available opportunity. | |
| |
Register to receive data from a producer. | |
| |
Start waiting for read availability. | |
Start waiting for write availability. | |
Stop consuming data. | |
| |
Stop waiting for read availability. | |
Stop waiting for write availability. | |
Stop consuming data from a producer, without disconnecting. | |
Reliably write some data. | |
| |
Inherited from Logger | |
Override this method to insert custom logging behavior. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
Inherited from FileDescriptor | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
int |
bufferSize = 65536 |
int |
connected = 0 |
str |
dataBuffer = ''
|
int |
disconnected = 0 |
int |
disconnecting = 0 |
int |
offset = 0 |
NoneType |
producer = None |
int |
producerPaused = 0 |
int |
streamingProducer = 0 |
Method Details |
---|
__init__(self,
reactor,
proc,
name,
fileno)
Initialize, specifying a process to connect to.
|
connectionLost(self, reason)Close my end of the pipe, signal the Process (which signals the ProcessProtocol). |
doRead(self)This is called when the pipe becomes readable. |
fileno(self)Return the fileno() of my process's stderr. |
writeSomeData(self, data)Write as much as possible of the given data, immediately. This is called to invoke the lower-level writing functionality, such as a socket's send() method, or a file's write(); this method returns an integer. If positive, it is the number of bytes written; if negative, it indicates the connection was lost.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:17 2004 | http://epydoc.sf.net |