C# 클래스 Granados.SSH1.SSH1ChannelBase

SSH1 abstract channel class. (base of the interactive-session and channels)
상속: ISSHChannel
파일 보기 프로젝트 열기: poderosaproject/poderosa

공개 메소드들

메소드 설명
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