class documentation

class StubConnection: (source)

View In Hierarchy

A stub for twisted.conch.ssh.connection.SSHConnection. Record the data that channels send, and when they try to close the connection.

Method __init__ Initialize our instance variables.
Method logPrefix Return our logging prefix.
Method sendClose Record the sent close.
Method sendData Record the sent data.
Method sendEOF Record the sent EOF.
Method sendExtendedData Record the sent extended data.
Method sendRequest Record the sent channel request.
Instance Variable closes a dict mapping SSHChannels to true if they have sent a close.
Instance Variable data a dict mapping SSHChannels to a list of bytes of data they sent.
Instance Variable eofs a dict mapping SSHChannels to true if they have sent an EOF.
Instance Variable extData a dict mapping SSHChannels to a list of tuple of (int, bytes) of extended data they sent.
Instance Variable requests a dict mapping SSHChannels to a list of tuple of (str, bytes) of channel requests they made.
Instance Variable transport Undocumented
def __init__(self, transport=None): (source)

Initialize our instance variables.

def logPrefix(self): (source)

Return our logging prefix.

def sendClose(self, channel): (source)

Record the sent close.

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

Record the sent data.

def sendEOF(self, channel): (source)

Record the sent EOF.

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

Record the sent extended data.

def sendRequest(self, channel, request, data, wantReply=False): (source)

Record the sent channel request.

a dict mapping SSHChannels to true if they have sent a close.

a dict mapping SSHChannels to a list of bytes of data they sent.

a dict mapping SSHChannels to true if they have sent an EOF.

a dict mapping SSHChannels to a list of tuple of (int, bytes) of extended data they sent.

requests: dict = (source)

a dict mapping SSHChannels to a list of tuple of (str, bytes) of channel requests they made.

transport = (source)

Undocumented