tubes.protocol._TransportFount(object)
class documentationtubes.protocol
(View In Hierarchy)
Implements interfaces: tubes.itube.IFount
An IFount
that wraps
around an ITransport
,
and, with the help of a _ProtocolPlumbing
,
delivers any data received by that ITransport
to an IDrain
.
Method | __init__ | Undocumented |
Method | flowTo | Start delivering data from the transport to the given drain. |
Method | pauseFlow | Pause flowing. |
Method | stopFlow | End the flow from this fount, dropping the TCP connection in the process. |
Instance Variable | _transport | the transport. (type: provider of ITransport
and IProducer .) |
Instance Variable | _pauser | a pauser that will pause and resume the transport. (type: Pauser ) |
Instance Variable | _preReceivePause | If data is received from the protocol when no drain is connected, this will
be an IPause . (type: IPause or types.NoneType ) |
Instance Variable | _preReceiveBuffer | If data is received from the protocol when no drain is connected, then this
will be the bytes. (type: bytes
or types.NoneType ) |
IPause
. (type: IPause
or types.NoneType
)
bytes
or types.NoneType
)
Start delivering data from the transport to the given drain.
Parameters | drain | the drain that will receive data from the wrapped transport. |
Returns | the next fount in the chain. |
End the flow from this fount, dropping the TCP connection in the process.