Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module process :: Class ProcessWriter |
|
Ephemeral
--+ |Ephemeral
--+ | | |Logger
--+ | | |FileDescriptor
--+ | ProcessWriter
(Internal) Helper class to write to Process's stdin.
I am a helper which describes a selectable asynchronous writer to a process's stdin.Method Summary | |
---|---|
Initialize, specifying a Process instance to connect to. | |
See abstract.FileDescriptor.connectionLost. | |
This does nothing. | |
Return the fileno() of my process's stdin. | |
Reliably write some data. | |
Write some data to the open process. | |
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. | |
| |
Inherited from Logger | |
Override this method to insert custom logging behavior. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
int |
connected = 1 |
int |
ic = 0 |
Inherited from FileDescriptor | |
tuple |
__implements__ = (<class twisted.internet.interfaces.IPr...
|
int |
bufferSize = 65536 |
str |
dataBuffer = ''
|
int |
disconnected = 0 |
int |
disconnecting = 0 |
int |
offset = 0 |
NoneType |
producer = None |
int |
producerPaused = 0 |
int |
streamingProducer = 0 |
Method Details |
---|
__init__(self,
proc)
Initialize, specifying a Process instance to connect to.
|
connectionLost(self, reason)See abstract.FileDescriptor.connectionLost. |
doRead(self)This does nothing. |
fileno(self)Return the fileno() of my process's stdin. |
write(self, data)Reliably write some data. If there is no buffered data this tries to write this data immediately, otherwise this adds data to be written the next time this file descriptor is ready for writing.
|
writeSomeData(self, data)Write some data to the open process. |
Class Variable Details |
---|
connected
|
ic
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Dec 9 17:48:00 2003 | http://epydoc.sf.net |