Part of twisted.conch.ssh.connection View Source View In Hierarchy
Known subclasses: twisted.conch.scripts.cftp.SSHConnection, twisted.conch.scripts.conch.SSHConnection, twisted.conch.scripts.tkconch.SSHConnection
Method | __init__ | Undocumented |
Method | serviceStarted | called when the service is active on the transport. |
Method | serviceStopped | called when the service is stopped, either by the connection ending |
Method | ssh_GLOBAL_REQUEST | Undocumented |
Method | ssh_REQUEST_SUCCESS | Undocumented |
Method | ssh_REQUEST_FAILURE | Undocumented |
Method | ssh_CHANNEL_OPEN | Undocumented |
Method | ssh_CHANNEL_OPEN_CONFIRMATION | Undocumented |
Method | ssh_CHANNEL_OPEN_FAILURE | Undocumented |
Method | ssh_CHANNEL_WINDOW_ADJUST | Undocumented |
Method | ssh_CHANNEL_DATA | Undocumented |
Method | ssh_CHANNEL_EXTENDED_DATA | Undocumented |
Method | ssh_CHANNEL_EOF | Undocumented |
Method | ssh_CHANNEL_CLOSE | Undocumented |
Method | ssh_CHANNEL_REQUEST | Undocumented |
Method | _cbChannelRequest | Undocumented |
Method | _ebChannelRequest | Undocumented |
Method | ssh_CHANNEL_SUCCESS | Undocumented |
Method | ssh_CHANNEL_FAILURE | Undocumented |
Method | sendGlobalRequest | Send a global request for this connection. Current this is only used |
Method | openChannel | Open a new channel on this connection. |
Method | sendRequest | Send a request to a channel. |
Method | adjustWindow | Tell the other side that we will receive more data. This should not |
Method | sendData | Send data to a channel. This should not normally be used: instead use |
Method | sendExtendedData | Send extended data to a channel. This should not normally be used: |
Method | sendEOF | Send an EOF (End of File) for a channel. |
Method | sendClose | Close a channel. |
Method | getChannel | The other side requested a channel of some sort. |
Method | gotGlobalRequest | We got a global request. pretty much, this is just used by the client |
Method | channelClosed | Called when a channel is closed. |
Inherited from SSHService:
Method | logPrefix | Override this method to insert custom logging behavior. Its |
Method | packetReceived | called when we receieve a packet on the transport |
Parameters | request | (type: str
) |
data | (type: str
) | |
wantReply | (type: bool @rtype
Deferred /None
) |
Parameters | channel | (type: subclass of SSHChannel
) |
extra | (type: str
) |
Parameters | channel | (type: subclass of SSHChannel
) |
requestType | (type: str
) | |
data | (type: str
) | |
wantReply | (type: bool @rtype
Deferred /None
) |
Parameters | channel | (type: subclass of SSHChannel
) |
bytesToAdd | (type: int
) |
Parameters | channel | (type: subclass of SSHChannel
) |
data | (type: str
) |
Parameters | channel | (type: subclass of SSHChannel
) |
dataType | (type: int
) | |
data | (type: str
) |
Parameters | channel | (type: subclass of SSHChannel
) |
Parameters | channel | (type: subclass of SSHChannel
) |
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 a subclass of SSHChannel
.
Parameters | channelType | (type: str
) |
windowSize | (type: int
) | |
maxPacket | (type: int
) | |
data | (type: str
) | |
Returns | (type: subclass of SSHChannel /tuple
) |
Parameters | requestType | (type: str
) |
data | (type: str
) | |
Returns | (type: int /tuple
) |
SSHConnection
.
If you don't, things will break mysteriously.