Class t.c.s.t.SSHTransportBase(protocol.Protocol):

Part of twisted.conch.ssh.transport View Source View In Hierarchy

Known subclasses: twisted.conch.ssh.transport.SSHClientTransport, twisted.conch.ssh.transport.SSHServerTransport

No class docstring
Method connectionLost Called when the connection is shut down.
Method connectionMade Called when a connection is made.
Method sendKexInit Undocumented
Method sendPacket Undocumented
Method getPacket Undocumented
Method dataReceived Called whenever data is received.
Method ssh_DISCONNECT Undocumented
Method ssh_IGNORE Undocumented
Method ssh_UNIMPLEMENTED Undocumented
Method ssh_DEBUG Undocumented
Method setService Undocumented
Method sendDebug Undocumented
Method sendIgnore Undocumented
Method sendUnimplemented Undocumented
Method sendDisconnect Undocumented
Method receiveError Undocumented
Method receiveUnimplemented Undocumented
Method receiveDebug Undocumented
Method isEncrypted direction must be in ["out", "in", "both"]
Method isVerified direction must be in ["out", "in", "both"]
Method loseConnection Undocumented

Inherited from BaseProtocol (via Protocol):

Method makeConnection Make a connection to a transport and a server.
def connectionLost(self, reason): (source)

Called when the connection is shut down.

Clear any circular references here, and any external references to this Protocol. The connection has been closed.
Parametersreason(type: twisted.python.failure.Failure )
def connectionMade(self): (source)

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
def sendKexInit(self): (source)
Undocumented
def sendPacket(self, messageType, payload): (source)
Undocumented
def getPacket(self): (source)
Undocumented
def dataReceived(self, data): (source)

Called whenever data is received.

Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
Parametersdataa string of indeterminate length. Please keep in mind that you will probably need to buffer some data, as partial (or multiple) protocol messages may be received! I recommend that unit tests for protocols call through to this method with differing chunk sizes, down to one byte at a time.
def ssh_DISCONNECT(self, packet): (source)
Undocumented
def ssh_IGNORE(self, packet): (source)
Undocumented
def ssh_UNIMPLEMENTED(self, packet): (source)
Undocumented
def ssh_DEBUG(self, packet): (source)
Undocumented
def setService(self, service): (source)
Undocumented
def sendDebug(self, message, alwaysDisplay=0, language=''): (source)
Undocumented
def sendIgnore(self, message): (source)
Undocumented
def sendUnimplemented(self): (source)
Undocumented
def sendDisconnect(self, reason, desc): (source)
Undocumented
def receiveError(self, reasonCode, description): (source)
Undocumented
def receiveUnimplemented(self, seqnum): (source)
Undocumented
def receiveDebug(self, alwaysDisplay, message, lang): (source)
Undocumented
def isEncrypted(self, direction='out'): (source)
direction must be in ["out", "in", "both"]
def isVerified(self, direction='out'): (source)
direction must be in ["out", "in", "both"]
def loseConnection(self): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.