An IProcessProtocol which fires a Deferred when the process it is associated with ends.

Instance Variable received A dict mapping file descriptors to lists of bytes received from the child process on those file descriptors.
Method __init__ Undocumented
Method childDataReceived Called when data arrives from the child process.
Method processEnded Called when the child process exits and all file descriptors associated with it have been closed.

Inherited from ProcessProtocol:

Method outReceived Some data was received from stdout.
Method errReceived Some data was received from stderr.
Method childConnectionLost Called when a file descriptor associated with the child process is closed.
Method inConnectionLost This will be called when stdin is closed.
Method outConnectionLost This will be called when stdout is closed.
Method errConnectionLost This will be called when stderr is closed.
Method processExited This will be called when the subprocess exits.

Inherited from BaseProtocol (via ProcessProtocol):

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.
received =
A dict mapping file descriptors to lists of bytes received from the child process on those file descriptors.
def __init__(self, whenFinished):
Undocumented
def childDataReceived(self, fd, bytes):

Called when data arrives from the child process.

ParameterschildFDThe file descriptor from which the data was received. (type: int)
dataThe data read from the child's file descriptor. (type: bytes)
def processEnded(self, reason):

Called when the child process exits and all file descriptors associated with it have been closed.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.