tubes.protocol._TransportDrain(object) class documentationtubes.protocol
(View In Hierarchy)
Implements interfaces: tubes.itube.IDrain
A _TransportDrain
is an IDrain that wraps
around an object that provides ITransport
and IConsumer,
and delivers data to that transport, and flow-control notifications from
the consumer.
| Method | __init__ | Undocumented |
| Method | flowingFrom | Data is flowing to this transport from the given fount. Register that fount as the transport's producer. |
| Method | receive | Receive an item of data, some bytes, from the fount. Pass it along to the transport. |
| Method | flowStopped | The flow of data that should be written to the underlying transport has ceased. Perform a half-close on the transport if possible so that it knows no further data is forthcoming. |
| Instance Variable | _transport | The transport. (type: IConsumer
/ ITransport
provider.) |
Data is flowing to this transport from the given fount. Register that fount as the transport's producer.
| Parameters | fount | the fount producing data - ISegments - for this
transport. |
Receive an item of data, some bytes, from the fount. Pass it along to the transport.
| Parameters | item | a fragment of a stream of bytes. (type: bytes) |
The flow of data that should be written to the underlying transport has ceased. Perform a half-close on the transport if possible so that it knows no further data is forthcoming.
| Parameters | reason | the reason that the flow stopped; ignored. |