C# Class Granados.Poderosa.SCP.SCPChannelStream

Channel stream for SCPClient
Inheritance: IDisposable
Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Private Properties

Свойство Type Description
OnChannelStatusChanged void
OnDataReceived void
OpenForTest void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
OnChannelStatusChanged ( SCPChannelStatus newStatus ) : void
OnDataReceived ( Granados.IO.DataFragment data ) : void
OpenForTest ( SSHChannel dummyChannel ) : void

Method Details

Close() public méthode

Close channel.
public Close ( ) : void
Résultat void

Dispose() public méthode

IDisposable implementation
public Dispose ( ) : void
Résultat void

GetPreferredDatagramSize() public méthode

Gets preferred datagram size.
public GetPreferredDatagramSize ( ) : int
Résultat int

Open() public méthode

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

Read() public méthode

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

Read() public méthode

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

ReadByte() public méthode

Read one byte
Timeout has occurred
public ReadByte ( int millisecondsTimeout ) : byte
millisecondsTimeout int Timeout in milliseconds
Résultat byte

ReadUntil() public méthode

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
Résultat byte[]

SCPChannelStream() public méthode

Constructor
public SCPChannelStream ( ) : System
Résultat System

Write() public méthode

Writes data.
public Write ( byte buffer ) : void
buffer byte Buffer
Résultat void

Write() public méthode

Writes data.
public Write ( byte buffer, int length ) : void
buffer byte Buffer
length int Length
Résultat void