Package DataCollector :: Module SshClient :: Class SshConnection
[hide private]
[frames] | no frames]

Class SshConnection

source code

         twisted.python.log.Logger --+        
                                     |        
  twisted.conch.ssh.service.SSHService --+    
                                         |    
twisted.conch.ssh.connection.SSHConnection --+
                                             |
                                            SshConnection

Instance Methods [hide private]
 
__init__(self, factory) source code
 
serviceStarted(self) source code
 
addCommand(self, cmd)
open a new command channel for each command in queue
source code
 
channelClosed(self, channel)
Called when a channel is closed.
source code

Inherited from twisted.conch.ssh.connection.SSHConnection: adjustWindow, getChannel, gotGlobalRequest, openChannel, sendClose, sendData, sendEOF, sendExtendedData, sendGlobalRequest, sendRequest, serviceStopped, ssh_CHANNEL_CLOSE, ssh_CHANNEL_DATA, ssh_CHANNEL_EOF, ssh_CHANNEL_EXTENDED_DATA, ssh_CHANNEL_FAILURE, ssh_CHANNEL_OPEN, ssh_CHANNEL_OPEN_CONFIRMATION, ssh_CHANNEL_OPEN_FAILURE, ssh_CHANNEL_REQUEST, ssh_CHANNEL_SUCCESS, ssh_CHANNEL_WINDOW_ADJUST, ssh_GLOBAL_REQUEST, ssh_REQUEST_FAILURE, ssh_REQUEST_SUCCESS

Inherited from twisted.conch.ssh.connection.SSHConnection (private): _cbChannelRequest, _ebChannelRequest

Inherited from twisted.conch.ssh.service.SSHService: logPrefix, packetReceived

Inherited from twisted.python.log.Logger: __providedBy__

Class Variables [hide private]

Inherited from twisted.conch.ssh.connection.SSHConnection: name, protocolMessages

Inherited from twisted.conch.ssh.service.SSHService: transport

Inherited from twisted.python.log.Logger: __implemented__, __provides__

Method Details [hide private]

__init__(self, factory)
(Constructor)

source code 
Overrides: twisted.conch.ssh.connection.SSHConnection.__init__

serviceStarted(self)

source code 
Overrides: twisted.conch.ssh.connection.SSHConnection.serviceStarted

channelClosed(self, channel)

source code 
Called when a channel is closed. It clears the local state related to the channel, and calls channel.closed(). MAKE SURE YOU CALL THIS METHOD, even if you subclass SSHConnection. If you don't, things will break mysteriously.
Overrides: twisted.conch.ssh.connection.SSHConnection.channelClosed
(inherited documentation)