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

SSH1 pseudo channel class for the interactive session.
Наследование: SSH1ChannelBase
Показать файл Открыть проект

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

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

ExecCommand ( SSHConnectionParameter param, string command ) : void

Starts a command

ExecShell ( SSHConnectionParameter param ) : bool

Starts a shell

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.

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

Constructor

Send ( Granados.IO.DataFragment data ) : void

Send data.

SendEOF ( ) : void

Send EOF.

WaitReady ( ) : bool

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

Приватные методы

Метод Описание
DoExecCommand ( SSHConnectionParameter param, string command ) : void

Starts a command

OpenPTY ( SSHConnectionParameter param ) : bool

Open PTY

RequestFailed ( ) : void

Changes state when the request was failed.

SetStateClosed ( bool byServer ) : void

Set state to "Closed".

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

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

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

Starts a command
public ExecCommand ( SSHConnectionParameter param, string command ) : void
param SSHConnectionParameter connection parameters
command string command line to execute
Результат void

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

Starts a shell
public ExecShell ( SSHConnectionParameter param ) : bool
param SSHConnectionParameter connection parameters
Результат bool

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

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

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

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

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

Constructor
public SSH1InteractiveSession ( IPacketSender packetSender, SSHProtocolEventManager protocolEventManager, uint localChannel, ChannelType channelType, string channelTypeString ) : System
packetSender IPacketSender
protocolEventManager SSHProtocolEventManager
localChannel uint
channelType ChannelType
channelTypeString string
Результат System

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

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

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

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

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

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