class documentation
class TimeoutTester(protocol.Protocol, policies.TimeoutMixin): (source)
A testable protocol with timeout facility.
Method | __init__ |
Initialize the protocol with a task.Clock object. |
Method | call |
Override callLater to use the deterministic clock. |
Method | connection |
On connection lost, cancel all timeout operations. |
Method | connection |
Upon connection, set the timeout. |
Method | data |
Reset the timeout on data. |
Method | timeout |
Flags the timedOut variable to indicate the timeout of the connection. |
Class Variable | time |
Undocumented |
Instance Variable | clock |
Undocumented |
Instance Variable | timed |
set to True if a timeout has been detected. |
Inherited from Protocol
:
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Inherited from TimeoutMixin
(via Protocol
, BaseProtocol
):
Method | reset |
Reset the timeout count down. |
Method | set |
Change the timeout period |
Method | __timed |
Undocumented |
Instance Variable | __timeout |
Undocumented |