C# Class Granados.IO.SynchronizedPacketReceiver

Inheritance: Granados.IO.SynchronizedDataHandler
Exibir arquivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method 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

Method 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 method

Implements IDataHandler
public OnClosed ( ) : void
return void

OnData() public method

Implements IDataHandler
public OnData ( Granados.IO.DataFragment data ) : void
data Granados.IO.DataFragment
return void

OnError() public method

Implements IDataHandler
public OnError ( Exception error ) : void
error System.Exception
return void

SendAndWaitResponse() public method

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
return Granados.IO.DataFragment

SynchronizedPacketReceiver() public method

Constructor
public SynchronizedPacketReceiver ( IGranadosSocket socket ) : System
socket IGranadosSocket socket for sending SSH packet
return System

WaitResponse() public method

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