C# 클래스 Granados.Poderosa.SCP.SCPChannelStream

Channel stream for SCPClient
상속: IDisposable
파일 보기 프로젝트 열기: poderosaproject/poderosa 1 사용 예제들

Private Properties

프로퍼티 타입 설명
OnChannelStatusChanged void
OnDataReceived void
OpenForTest void

공개 메소드들

메소드 설명
Close ( ) : void

Close channel.

Dispose ( ) : void

IDisposable implementation

GetPreferredDatagramSize ( ) : int

Gets preferred datagram size.

Open ( ISSHConnection connection, string command, int millisecondsTimeout ) : void

Opens channel.

Read ( byte buffer, int millisecondsTimeout ) : int

Reads data

Read ( byte buffer, int maxLength, int millisecondsTimeout ) : int

Reads data

ReadByte ( int millisecondsTimeout ) : byte

Read one byte

ReadUntil ( byte terminator, int millisecondsTimeout ) : byte[]

Read data until specified byte value is read.

SCPChannelStream ( ) : System

Constructor

Write ( byte buffer ) : void

Writes data.

Write ( byte buffer, int length ) : void

Writes data.

비공개 메소드들

메소드 설명
OnChannelStatusChanged ( SCPChannelStatus newStatus ) : void
OnDataReceived ( Granados.IO.DataFragment data ) : void
OpenForTest ( SSHChannel dummyChannel ) : void

메소드 상세

Close() 공개 메소드

Close channel.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

IDisposable implementation
public Dispose ( ) : void
리턴 void

GetPreferredDatagramSize() 공개 메소드

Gets preferred datagram size.
public GetPreferredDatagramSize ( ) : int
리턴 int

Open() 공개 메소드

Opens channel.
Channel has been already opened or already closed. Timeout has occurred while waiting for READY status.
public Open ( ISSHConnection connection, string command, int millisecondsTimeout ) : void
connection ISSHConnection SSH connection object
command string Remote command
millisecondsTimeout int timeout in milliseconds
리턴 void

Read() 공개 메소드

Reads data
Timeout has occurred
public Read ( byte buffer, int millisecondsTimeout ) : int
buffer byte Byte array to store the data
millisecondsTimeout int Timeout in milliseconds
리턴 int

Read() 공개 메소드

Reads data
Timeout has occurred
public Read ( byte buffer, int maxLength, int millisecondsTimeout ) : int
buffer byte Byte array to store the data
maxLength int Maximum bytes to read
millisecondsTimeout int Timeout in milliseconds
리턴 int

ReadByte() 공개 메소드

Read one byte
Timeout has occurred
public ReadByte ( int millisecondsTimeout ) : byte
millisecondsTimeout int Timeout in milliseconds
리턴 byte

ReadUntil() 공개 메소드

Read data until specified byte value is read.
Timeout has occurred Buffer overflow
public ReadUntil ( byte terminator, int millisecondsTimeout ) : byte[]
terminator byte Byte value to stop reading
millisecondsTimeout int Timeout in milliseconds
리턴 byte[]

SCPChannelStream() 공개 메소드

Constructor
public SCPChannelStream ( ) : System
리턴 System

Write() 공개 메소드

Writes data.
public Write ( byte buffer ) : void
buffer byte Buffer
리턴 void

Write() 공개 메소드

Writes data.
public Write ( byte buffer, int length ) : void
buffer byte Buffer
length int Length
리턴 void