Home | Trees | Index | Help |
|
---|
Package twisted :: Package internet :: Module win32eventreactor :: Class Process |
|
Ephemeral
--+ |Logger
--+ |FileDescriptor
--+ | Process
A process that integrates with the Twisted event loop.
Issues:import os, sys, mscvrt msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY)
Method Summary | |
---|---|
__init__(self,
reactor,
protocol,
command,
args,
environment,
path)
| |
_closeStdin(self)
| |
closeStderr(self)
| |
Close the process' stdin. | |
closeStdout(self)
| |
Shut down resources. | |
Will be called 3 times, by stdout/err threads and process handle. | |
Runs in thread. | |
Runs in thread. | |
Runs in thread. | |
errConnectionLost(self)
| |
inConnectionLost(self)
| |
Close the process' stdout, in and err. | |
outConnectionLost(self)
| |
signalProcess(self,
signalID)
| |
Write data to the process' stdin. | |
Inherited from FileDescriptor | |
Called after a loseConnection(), when all data has been written. | |
File Descriptor number for select(). | |
| |
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. | |
| |
Write as much as possible of the given data, immediately. | |
Inherited from Logger | |
Override this method to insert custom logging behavior. | |
Inherited from Ephemeral | |
| |
|
Class Variable Summary | |
---|---|
str |
buffer = ''
|
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 |
---|
closeStdin(self)Close the process' stdin. |
connectionLost(self, reason=None)Shut down resources. |
connectionLostNotify(self)Will be called 3 times, by stdout/err threads and process handle. |
doReadErr(self)Runs in thread. |
doReadOut(self)Runs in thread. |
doWrite(self)Runs in thread. |
loseConnection(self)Close the process' stdout, in and err. |
write(self, data)Write data to the process' stdin. |
Class Variable Details |
---|
buffer
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat May 15 20:08:06 2004 | http://epydoc.sf.net |