C# Class Granados.IO.SynchronizedPacketReceiver

Inheritance: Granados.IO.SynchronizedDataHandler
Afficher le fichier Open project: poderosaproject/poderosa Class Usage Examples

Méthodes publiques

Méthode Description
OnClosed ( ) : void

Implements IDataHandler

OnData ( Granados.IO.DataFragment data ) : void

Implements IDataHandler

OnError ( Exception error ) : void

Implements IDataHandler

SendAndWaitResponse ( Granados.IO.DataFragment data ) : Granados.IO.DataFragment

Send a packet then receive a response.

SynchronizedPacketReceiver ( IGranadosSocket socket ) : System

Constructor

WaitResponse ( ) : Granados.IO.DataFragment

Wait until the next response has been received.

Private Methods

Méthode Description
ClearQueue ( ) : void

Clear queue

EnqueueDataFragment ( Granados.IO.DataFragment data ) : void

Enqueue a copy of the specified DataFragment

EnqueueError ( Exception error ) : void

Enqueue the specified Exception

Method Details

OnClosed() public méthode

Implements IDataHandler
public OnClosed ( ) : void
Résultat void

OnData() public méthode

Implements IDataHandler
public OnData ( Granados.IO.DataFragment data ) : void
data Granados.IO.DataFragment
Résultat void

OnError() public méthode

Implements IDataHandler
public OnError ( Exception error ) : void
error System.Exception
Résultat void

SendAndWaitResponse() public méthode

Send a packet then receive a response.
unprocessed incoming packet exists
public SendAndWaitResponse ( Granados.IO.DataFragment data ) : Granados.IO.DataFragment
data Granados.IO.DataFragment a packet to be sent
Résultat Granados.IO.DataFragment

SynchronizedPacketReceiver() public méthode

Constructor
public SynchronizedPacketReceiver ( IGranadosSocket socket ) : System
socket IGranadosSocket socket for sending SSH packet
Résultat System

WaitResponse() public méthode

Wait until the next response has been received.
public WaitResponse ( ) : Granados.IO.DataFragment
Résultat Granados.IO.DataFragment