Just enough of a mock of ITransport to work with the protocols in basic, as a wrapper around a callable taking some data.

Method __init__ Undocumented
Method write Call the _dataWritten callback.
Method writeSequence Call the _dataWritten callback for each element.
Instance Variable _dataWritten 1-argument callable taking bytes, a chunk of data from a stream.
_dataWritten =
1-argument callable taking bytes, a chunk of data from a stream.
def __init__(self, dataWritten):
Undocumented
def write(self, data):

Call the _dataWritten callback.

ParametersdataThe data to write. (type: bytes)
def writeSequence(self, dati):

Call the _dataWritten callback for each element.

ParametersdatiThe sequence of data to write. (type: list of bytes)
API Documentation for tubes, generated by pydoctor at 2016-01-18 07:46:47.