C# Class Granados.SSH1.SSH1SubChannelBase

SSH1 channel base class.
Inheritance: SSH1ChannelBase
Afficher le fichier Open project: poderosaproject/poderosa

Méthodes publiques

Méthode Description
Close ( ) : void

Close this channel.

After calling this method, all mothods of the ISSHChannel will throw SSHChannelInvalidOperationException.If this method was called under the inappropriate channel state, the method call will be ignored silently.

ProcessPacket ( SSH1PacketType packetType, Granados.IO.DataFragment packetFragment ) : void

Process packet about this channel.

ResizeTerminal ( uint width, uint height, uint pixelWidth, uint pixelHeight ) : void

Send window dimension change message.

SSH1SubChannelBase ( IPacketSender packetSender, SSHProtocolEventManager protocolEventManager, uint localChannel, ChannelType channelType, string channelTypeString ) : System

Constructor (initiated by client)

SSH1SubChannelBase ( IPacketSender packetSender, SSHProtocolEventManager protocolEventManager, uint localChannel, uint remoteChannel, ChannelType channelType, string channelTypeString ) : System

Constructor (initiated by server)

Send ( Granados.IO.DataFragment data ) : void

Send data.

SendEOF ( ) : void

Send EOF.

SendOpen ( ) : void

Sends SSH_MSG_CHANNEL_OPEN

SendOpenConfirmation ( ) : void

Sends SSH_MSG_CHANNEL_OPEN_CONFIRMATION

WaitReady ( ) : bool

Block execution of the current thread until the channel is ready for the communication.

Méthodes protégées

Méthode Description
BuildOpenPacket ( ) : Tuple

Builds SSH_MSG_CHANNEL_OPEN packet

OnChannelEstablished ( ) : void

Do additional work when State was changed to State.Established.

ProcessPacketSub ( SSH1PacketType packetType, Granados.IO.DataFragment packetFragment ) : SubPacketProcessResult

Process packet additionally.

This method will be called repeatedly while State is State.Established or State.Ready.

RequestFailed ( ) : void

The derived class can change state from "Established" to "Closing" by calling this method.

SetStateReady ( ) : void

The derived class can change state from "Established" to "Ready" by calling this method.

Private Methods

Méthode Description
SetStateClosed ( bool byServer ) : void

Set state to "Closed".

Method Details

BuildOpenPacket() protected abstract méthode

Builds SSH_MSG_CHANNEL_OPEN packet
protected abstract BuildOpenPacket ( ) : Tuple
Résultat Tuple

Close() public méthode

Close this channel.
After calling this method, all mothods of the ISSHChannel will throw SSHChannelInvalidOperationException. If this method was called under the inappropriate channel state, the method call will be ignored silently.
public Close ( ) : void
Résultat void

OnChannelEstablished() protected méthode

Do additional work when State was changed to State.Established.
protected OnChannelEstablished ( ) : void
Résultat void

ProcessPacket() public méthode

Process packet about this channel.
public ProcessPacket ( SSH1PacketType packetType, Granados.IO.DataFragment packetFragment ) : void
packetType SSH1PacketType a packet type (message number)
packetFragment Granados.IO.DataFragment a packet image except message number and recipient channel.
Résultat void

ProcessPacketSub() protected méthode

Process packet additionally.
This method will be called repeatedly while State is State.Established or State.Ready.
protected ProcessPacketSub ( SSH1PacketType packetType, Granados.IO.DataFragment packetFragment ) : SubPacketProcessResult
packetType SSH1PacketType a packet type (message number)
packetFragment Granados.IO.DataFragment a packet image except message number and recipient channel.
Résultat SubPacketProcessResult

RequestFailed() protected méthode

The derived class can change state from "Established" to "Closing" by calling this method.
protected RequestFailed ( ) : void
Résultat void

ResizeTerminal() public méthode

Send window dimension change message.
the channel is already closed.
public ResizeTerminal ( uint width, uint height, uint pixelWidth, uint pixelHeight ) : void
width uint terminal width, columns
height uint terminal height, rows
pixelWidth uint terminal width, pixels
pixelHeight uint terminal height, pixels
Résultat void

SSH1SubChannelBase() public méthode

Constructor (initiated by client)
public SSH1SubChannelBase ( IPacketSender packetSender, SSHProtocolEventManager protocolEventManager, uint localChannel, ChannelType channelType, string channelTypeString ) : System
packetSender IPacketSender
protocolEventManager SSHProtocolEventManager
localChannel uint
channelType ChannelType
channelTypeString string
Résultat System

SSH1SubChannelBase() public méthode

Constructor (initiated by server)
public SSH1SubChannelBase ( IPacketSender packetSender, SSHProtocolEventManager protocolEventManager, uint localChannel, uint remoteChannel, ChannelType channelType, string channelTypeString ) : System
packetSender IPacketSender
protocolEventManager SSHProtocolEventManager
localChannel uint
remoteChannel uint
channelType ChannelType
channelTypeString string
Résultat System

Send() public méthode

Send data.
the channel is already closed.
public Send ( Granados.IO.DataFragment data ) : void
data Granados.IO.DataFragment data to send
Résultat void

SendEOF() public méthode

Send EOF.
the channel is already closed.
public SendEOF ( ) : void
Résultat void

SendOpen() public méthode

Sends SSH_MSG_CHANNEL_OPEN
public SendOpen ( ) : void
Résultat void

SendOpenConfirmation() public méthode

Sends SSH_MSG_CHANNEL_OPEN_CONFIRMATION
inappropriate channel state
public SendOpenConfirmation ( ) : void
Résultat void

SetStateReady() protected méthode

The derived class can change state from "Established" to "Ready" by calling this method.
protected SetStateReady ( ) : void
Résultat void

WaitReady() public méthode

Block execution of the current thread until the channel is ready for the communication.
public WaitReady ( ) : bool
Résultat bool