class documentation

class MockConnection(SSHService): (source)

View In Hierarchy

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 logPrefix Return our logging prefix.
Method sendClose Record that the channel sent a close message.
Method sendData Record the sent data.
Method sendExtendedData 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 extData a dict mapping channel id #s to lists of 2-tuples (extended data type, data) sent by that channel.

Inherited from SSHService:

Method packetReceived called when we receive a packet on the transport
Method serviceStarted called when the service is active on the transport.
Method serviceStopped called when the service is stopped, either by the connection ending or by another service being started
Class Variable name Undocumented
Class Variable protocolMessages Undocumented
Class Variable transport Undocumented
Class Variable _log Undocumented
def __init__(self): (source)

Undocumented

def logPrefix(self): (source)

Return our logging prefix.

def sendClose(self, channel): (source)

Record that the channel sent a close message.

def sendData(self, channel, data): (source)

Record the sent data.

def sendExtendedData(self, channel, type, data): (source)

Record the sent extended data.

a dict mapping channel id #s to True if that channel sent a close message.

a dict mapping channel id #s to lists of data sent by that channel.

a dict mapping channel id #s to lists of 2-tuples (extended data type, data) sent by that channel.