Trees | Index | Help |
|
---|
Package twisted :: Package conch :: Package ssh :: Module transport :: Class SSHTransportBase |
|
BaseProtocol
--+ |Protocol
--+ | SSHTransportBase
SSHClientTransport
Method Summary | |
---|---|
connectionLost(self,
reason)
| |
Called when a connection is made. | |
Called whenever data is received. | |
getPacket(self)
| |
direction must be in ["out", "in", "both"] | |
direction must be in ["out", "in", "both"] | |
loseConnection(self)
| |
receiveDebug(self,
alwaysDisplay,
message,
lang)
| |
receiveError(self,
reasonCode,
description)
| |
receiveUnimplemented(self,
seqnum)
| |
sendDebug(self,
message,
alwaysDisplay,
language)
| |
sendDisconnect(self,
reason,
desc)
| |
sendIgnore(self,
message)
| |
sendKexInit(self)
| |
sendPacket(self,
messageType,
payload)
| |
sendUnimplemented(self)
| |
setService(self,
service)
| |
ssh_DEBUG(self,
packet)
| |
ssh_DISCONNECT(self,
packet)
| |
ssh_IGNORE(self,
packet)
| |
ssh_UNIMPLEMENTED(self,
packet)
| |
Inherited from BaseProtocol :
makeConnection
|
Class Variable Summary | |
---|---|
str |
buf = ''
|
str |
comment = ''
|
NoneType |
currentEncryptions = None |
int |
gotVersion = 0 |
int |
ignoreNextPacket = 0 |
NoneType |
incomingCompression = None |
int |
incomingPacketSequence = 0 |
int |
isAuthorized = 0 |
str |
ourVersionString = 'SSH-2.0-Twisted'
|
NoneType |
outgoingCompression = None |
int |
outgoingPacketSequence = 0 |
str |
protocolVersion = '2.0'
|
NoneType |
service = None |
NoneType |
sessionID = None |
list |
supportedCiphers = ['aes256-ctr', 'aes256-cbc', 'aes192-...
|
list |
supportedCompressions = ['none', 'zlib']
|
list |
supportedKeyExchanges = ['diffie-hellman-group-exchange-...
|
tuple |
supportedLanguages = ()
|
list |
supportedMACs = ['hmac-sha1', 'hmac-md5']
|
list |
supportedPublicKeys = ['ssh-rsa', 'ssh-dss']
|
str |
version = 'Twisted'
|
Inherited from Protocol :
__implemented__ ,
__provides__
Inherited from BaseProtocol :
__providedBy__ ,
connected ,
transport
|
Method Details |
---|
connectionMade(self)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.
|
dataReceived(self, data)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.
|
isEncrypted(self, direction='out')direction must be in ["out", "in", "both"] |
isVerified(self, direction='out')direction must be in ["out", "in", "both"] |
Class Variable Details |
---|
buf
|
comment
|
currentEncryptions
|
gotVersion
|
ignoreNextPacket
|
incomingCompression
|
incomingPacketSequence
|
isAuthorized
|
ourVersionString
|
outgoingCompression
|
outgoingPacketSequence
|
protocolVersion
|
service
|
sessionID
|
supportedCiphers
|
supportedCompressions
|
supportedKeyExchanges
|
supportedLanguages
|
supportedMACs
|
supportedPublicKeys
|
version
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Aug 16 09:55:11 2007 | http://epydoc.sf.net |