I can connect Standard IO to a twisted.protocol.
I act as a selectable for sys.stdin, and provide a write method that writes
to stdout.
Methods
|
|
__init__
connectionLost
doRead
write
|
|
__init__
|
__init__ ( self, protocol )
Create me with a protocol.
This will fail if a StandardIO has already been instantiated.
Exceptions
|
|
RuntimeError, "Standard IO already in use."
|
|
|
connectionLost
|
connectionLost ( self )
The connection was lost.
|
|
doRead
|
doRead ( self )
Some data's readable from standard input.
|
|
write
|
write ( self, data )
Write some data to standard output.
|
|