C# Класс Granados.SSH1.SSH1ChannelBase

SSH1 abstract channel class. (base of the interactive-session and channels)
Наследование: ISSHChannel
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

Close() публичный абстрактный Метод

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
Результат void

Die() защищенный Метод

Notifies terminating this channel.
protected Die ( ) : void
Результат void

ProcessPacket() публичный абстрактный Метод

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.
Результат void

ResizeTerminal() публичный абстрактный Метод

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
Результат void

SSH1ChannelBase() публичный Метод

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
Результат System

Send() публичный абстрактный Метод

Send data.
the channel is already closed.
public abstract Send ( Granados.IO.DataFragment data ) : void
data Granados.IO.DataFragment data to send
Результат void

SendBreak() публичный Метод

Send Break. (SSH2, session channel only)
the channel is already closed.
public SendBreak ( int breakLength ) : bool
breakLength int break-length in milliseconds
Результат bool

SendEOF() публичный абстрактный Метод

Send EOF.
the channel is already closed.
public abstract SendEOF ( ) : void
Результат void

SetHandler() публичный Метод

Sets handler
public SetHandler ( ISSHChannelEventHandler handler ) : void
handler ISSHChannelEventHandler
Результат void

SetRemoteChannel() защищенный Метод

Sets remote channel.
protected SetRemoteChannel ( uint remoteChannel ) : void
remoteChannel uint remote channel
Результат void

Trace() защищенный Метод

Outputs Trace message.
protected Trace ( string format ) : void
format string format string
Результат void

Transmit() защищенный Метод

Sends a packet.
protected Transmit ( Granados.SSH1.SSH1Packet packet ) : void
packet Granados.SSH1.SSH1Packet packet object
Результат void

WaitReady() публичный абстрактный Метод

Block execution of the current thread until the channel is ready for the communication.
public abstract WaitReady ( ) : bool
Результат bool