Package twisted :: Package internet :: Module protocol :: Class ProcessProtocol
[show private | hide private]
[frames | no frames]

Class ProcessProtocol

BaseProtocol --+
               |
              ProcessProtocol

Known Subclasses:
SSHSessionProtocol, _ValueGetter, _BackRelay, LoggingProtocol, CGIProcessProtocol, SSHTestOpenSSHProcess, SignalProtocol, Accumulator, TrivialProcessProtocol, TestProcessProtocol, EchoProtocol

Processes have some additional methods besides receiving data.
Method Summary
  errConnectionLost(self)
This will be called when stderr is closed.
  errReceived(self, data)
Some data was received from stderr.
  inConnectionLost(self)
Called when stdin is shut down.
  outConnectionLost(self)
Called when stdout is shut down.
  outReceived(self, data)
Some data was received from stdout.
  processEnded(self, reason)
This will be called when the subprocess is finished.

Method Details

errConnectionLost(self)

This will be called when stderr is closed.

errReceived(self, data)

Some data was received from stderr.

inConnectionLost(self)

Called when stdin is shut down.

outConnectionLost(self)

Called when stdout is shut down.

outReceived(self, data)

Some data was received from stdout.

processEnded(self, reason)

This will be called when the subprocess is finished.
Parameters:
reason
           (type=twisted.python.failure.Failure)

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:25:40 2003 http://epydoc.sf.net