class documentation
class MockConnection(SSHService): (source)
A mock for twisted.conch.ssh.connection.SSHConnection. Record the data that channels send, and when they try to close the connection.
Method | __init__ |
Undocumented |
Method | log |
Return our logging prefix. |
Method | send |
Record that the channel sent a close message. |
Method | send |
Record the sent data. |
Method | send |
Record the sent extended data. |
Instance Variable | closes |
a dict mapping channel id #s to True if that channel sent a close message. |
Instance Variable | data |
a dict mapping channel id #s to lists of data sent by that channel. |
Instance Variable | ext |
a dict mapping channel id #s to lists of 2-tuples (extended data type, data) sent by that channel. |
Inherited from SSHService
:
Method | packet |
called when we receive a packet on the transport |
Method | service |
called when the service is active on the transport. |
Method | service |
called when the service is stopped, either by the connection ending or by another service being started |
Class Variable | name |
Undocumented |
Class Variable | protocol |
Undocumented |
Class Variable | transport |
Undocumented |
Class Variable | _log |
Undocumented |