Home | Trees | Index | Help |
---|
Package twisted :: Package conch :: Package ssh :: Module connection :: Class SSHConnection |
|
SSHService
--+
|
SSHConnection
SSHConnection
,
SSHConnection
,
SSHTestClientConnection
,
SSHTestServerConnection
Method Summary | |
---|---|
__init__(self)
| |
Tell the other side that we will receive more data. | |
subclass of SSHChannel /tuple
|
The other side requested a channel of some sort. |
int /tuple
|
We got a global request. |
Open a new channel on this connection. | |
called when we receieve a packet on the transport (inherited from SSHService )
| |
Close a channel. | |
Send data to a channel. | |
Send an EOF (End of File) for a channel. | |
Send extended data to a channel. | |
Send a global request for this connection. | |
Send a request to a channel. | |
called when the service is active on the transport. (inherited from SSHService )
| |
called when the service is stopped, either by the connection ending or by another service being started | |
ssh_CHANNEL_CLOSE(self,
packet)
| |
ssh_CHANNEL_DATA(self,
packet)
| |
ssh_CHANNEL_EOF(self,
packet)
| |
ssh_CHANNEL_EXTENDED_DATA(self,
packet)
| |
ssh_CHANNEL_FAILURE(self,
packet)
| |
ssh_CHANNEL_OPEN(self,
packet)
| |
ssh_CHANNEL_OPEN_CONFIRMATION(self,
packet)
| |
ssh_CHANNEL_OPEN_FAILURE(self,
packet)
| |
ssh_CHANNEL_REQUEST(self,
packet)
| |
ssh_CHANNEL_SUCCESS(self,
packet)
| |
ssh_CHANNEL_WINDOW_ADJUST(self,
packet)
| |
ssh_GLOBAL_REQUEST(self,
packet)
| |
ssh_REQUEST_FAILURE(self,
packet)
| |
ssh_REQUEST_SUCCESS(self,
packet)
|
Class Variable Summary | |
---|---|
str |
name
|
dict |
protocolMessages
|
Method Details |
---|
adjustWindow(self, channel, bytesToAdd)Tell the other side that we will receive more data. This should not normally need to be called as it is managed automatically.
|
getChannel(self, channelType, windowSize, maxPacket, data)The other side requested a channel of some sort. channelType is the type of channel being requested, windowSize is the initial size of the remote window, maxPacket is the largest packet we should send, data is any other packet data (often nothing). We return either a subclass of SSHChannel, or a tuple of (errorCode, errorMessage).
|
gotGlobalRequest(self, requestType, data)We got a global request. pretty much, this is just used by the client to request that we forward a port from the server to the client. returns either:
|
openChannel(self, channel, extra='')Open a new channel on this connection.
|
sendClose(self, channel)Close a channel.
|
sendData(self, channel, data)Send data to a channel. This should not normally be used: instead use channel.write(data) as it manages the window automatically.
|
sendEOF(self, channel)Send an EOF (End of File) for a channel.
|
sendExtendedData(self, channel, dataType, data)Send extended data to a channel. This should not normally be used: instead use channel.writeExtendedData(data, dataType) as it manages the window automatically.
|
sendGlobalRequest(self, request, data, wantReply=0)Send a global request for this connection. Current this is only used for remote->local TCP forwarding.
|
sendRequest(self, channel, requestType, data, wantReply=0)Send a request to a channel.
|
serviceStopped(self)called when the service is stopped, either by the connection ending or by another service being started
|
Class Variable Details |
---|
name
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:25:32 2003 | http://epydoc.sf.net |