C# Class Granados.SSH1.SSH1ChannelBase

SSH1 abstract channel class. (base of the interactive-session and channels)
Inheritance: ISSHChannel
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.

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.

Méthodes protégées

Méthode 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 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 abstract Close ( ) : void
Résultat void

Die() protected méthode

Notifies terminating this channel.
protected Die ( ) : void
Résultat void

ProcessPacket() public abstract méthode

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.
Résultat void

ResizeTerminal() public abstract méthode

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
Résultat void

SSH1ChannelBase() public méthode

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
Résultat System

Send() public abstract méthode

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

SendBreak() public méthode

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

SendEOF() public abstract méthode

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

SetHandler() public méthode

Sets handler
public SetHandler ( ISSHChannelEventHandler handler ) : void
handler ISSHChannelEventHandler
Résultat void

SetRemoteChannel() protected méthode

Sets remote channel.
protected SetRemoteChannel ( uint remoteChannel ) : void
remoteChannel uint remote channel
Résultat void

Trace() protected méthode

Outputs Trace message.
protected Trace ( string format ) : void
format string format string
Résultat void

Transmit() protected méthode

Sends a packet.
protected Transmit ( Granados.SSH1.SSH1Packet packet ) : void
packet Granados.SSH1.SSH1Packet packet object
Résultat void

WaitReady() public abstract méthode

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