Known subclasses: twisted.conch.test.test_session.StubTransportWithWriteErr

A stub transport which records the data written.

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.
buf =
the data sent to the transport. (type: bytes)
close =
flags indicating if the transport has been closed. (type: bool)
def getPeer(self):

Return an arbitrary IAddress.

def getHost(self):

Return an arbitrary IAddress.

def write(self, data):

Record data in the buffer.

def loseConnection(self):

Note that the connection was closed.

def setTcpNoDelay(self, enabled):

Pretend to set TCP_NODELAY.

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