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

Class ProcessProtocol

BaseProtocol --+
               |
              ProcessProtocol

Known Subclasses:
EventCommandProtocol, ProcessRunner

Processes have some additional methods besides receiving data.
Method Summary
  childConnectionLost(self, childFD)
  childDataReceived(self, childFD, data)
  errConnectionLost(self)
This will be called when stderr is closed.
  errReceived(self, data)
Some data was received from stderr.
  inConnectionLost(self)
This will be called when stdin is closed.
  outConnectionLost(self)
This will be called when stdout is closed.
  outReceived(self, data)
Some data was received from stdout.
  processEnded(self, reason)
This will be called when the subprocess is finished.
Inherited from BaseProtocol: connectionMade, makeConnection

Class Variable Summary
Inherited from BaseProtocol: __implemented__, __providedBy__, __provides__, connected, transport

Method Details

errConnectionLost(self)

This will be called when stderr is closed.

errReceived(self, data)

Some data was received from stderr.

inConnectionLost(self)

This will be called when stdin is closed.

outConnectionLost(self)

This will be called when stdout is closed.

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 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net