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

Class ProcessProtocol

BaseProtocol --+
               |
              ProcessProtocol

Known Subclasses:
ProcessProtocol, ProcessProtocol

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(self)
Called when a connection is made.
  makeConnection(self, transport)
Make a connection to a transport and a server.

Class Variable Summary
    Inherited from BaseProtocol
Implements __implemented__ = <implementedBy twisted.internet.protoc...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
int connected = 0                                                                     
NoneType transport = None                                                                  

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 Mon Oct 1 03:52:06 2007 http://epydoc.sf.net