twisted.conch.test.test_session.StubTransportWithWriteErr(StubTransport) class documentationtwisted.conch.test.test_session
(View In Hierarchy)
A version of StubTransport which records the error data sent to it.
| Instance Variable | err | the extended data sent to the transport. (type: bytes) |
| Method | writeErr | Record the extended data in the buffer. This was an old interface that allowed the Transports from ISession.openShell() or ISession.execCommand() to receive extended data from the client. |
Inherited from StubTransport:
| Instance Variable | buf | the data sent to the transport. (type: bytes) |
| Instance Variable | close | flags indicating if the transport has been closed. (type: bool) |
| Method | getPeer | Return an arbitrary IAddress. |
| Method | getHost | Return an arbitrary IAddress. |
| Method | write | Record data in the buffer. |
| Method | loseConnection | Note that the connection was closed. |
| Method | setTcpNoDelay | Pretend to set TCP_NODELAY. |