C# Class Granados.SSH1.SSH1ChannelBase

SSH1 abstract channel class. (base of the interactive-session and channels)
Inheritance: ISSHChannel
Show file Open project: poderosaproject/poderosa

Public Methods

Method 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.

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

Constructor

Send ( Granados.IO.DataFragment data ) : void

Send data.

SendBreak ( int breakLength ) : bool

Send Break. (SSH2, session channel only)

SendEOF ( ) : void

Send EOF.

SetHandler ( ISSHChannelEventHandler handler ) : void

Sets handler

WaitReady ( ) : bool

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

Protected Methods

Method Description
Die ( ) : void

Notifies terminating this channel.

SetRemoteChannel ( uint remoteChannel ) : void

Sets remote channel.

Trace ( string format ) : void

Outputs Trace message.

Transmit ( Granados.SSH1.SSH1Packet packet ) : void

Sends a packet.

Method Details

Close() public abstract method

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 abstract Close ( ) : void
return void

Die() protected method

Notifies terminating this channel.
protected Die ( ) : void
return void

ProcessPacket() public abstract method

Process packet about this channel.
public abstract 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.
return void

ResizeTerminal() public abstract method

Send window dimension change message.
the channel is already closed.
public abstract 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
return void

SSH1ChannelBase() public method

Constructor
public SSH1ChannelBase ( 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
return System

Send() public abstract method

Send data.
the channel is already closed.
public abstract Send ( Granados.IO.DataFragment data ) : void
data Granados.IO.DataFragment data to send
return void

SendBreak() public method

Send Break. (SSH2, session channel only)
the channel is already closed.
public SendBreak ( int breakLength ) : bool
breakLength int break-length in milliseconds
return bool

SendEOF() public abstract method

Send EOF.
the channel is already closed.
public abstract SendEOF ( ) : void
return void

SetHandler() public method

Sets handler
public SetHandler ( ISSHChannelEventHandler handler ) : void
handler ISSHChannelEventHandler
return void

SetRemoteChannel() protected method

Sets remote channel.
protected SetRemoteChannel ( uint remoteChannel ) : void
remoteChannel uint remote channel
return void

Trace() protected method

Outputs Trace message.
protected Trace ( string format ) : void
format string format string
return void

Transmit() protected method

Sends a packet.
protected Transmit ( Granados.SSH1.SSH1Packet packet ) : void
packet Granados.SSH1.SSH1Packet packet object
return void

WaitReady() public abstract method

Block execution of the current thread until the channel is ready for the communication.
public abstract WaitReady ( ) : bool
return bool