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.
err =
the extended data sent to the transport. (type: bytes)
def writeErr(self, data):

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.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.