C# Class Granados.Poderosa.SFTP.SFTPClientChannelEventHandler

Channel data handler for SFTPClient
Inheritance: SimpleSSHChannelEventHandler
Show file Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
ClearResponseBuffer ( ) : void

Crear response buffer

OnClosed ( bool byServer ) : void
OnData ( DataFragment data ) : void
OnError ( Exception error ) : void
OnReady ( ) : void
WaitResponse ( DataReceivedDelegate responseHandler, int millisecondsTimeout ) : void

Wait for response.

Caller should lock ResponseNotifier before send a request packet, and this method should be called in the lock-block.

Private Methods

Method Description
Dump ( string caption, DataFragment data ) : void
Dump ( string caption, byte data, int offset, int length ) : void
TransitStatus ( SFTPChannelStatus newStatus ) : void

Method Details

ClearResponseBuffer() public method

Crear response buffer
public ClearResponseBuffer ( ) : void
return void

OnClosed() public method

public OnClosed ( bool byServer ) : void
byServer bool
return void

OnData() public method

public OnData ( DataFragment data ) : void
data DataFragment
return void

OnError() public method

public OnError ( Exception error ) : void
error Exception
return void

OnReady() public method

public OnReady ( ) : void
return void

WaitResponse() public method

Wait for response.

Caller should lock ResponseNotifier before send a request packet, and this method should be called in the lock-block.

Timeout has occured. an exception which was thrown while executing responseHandler.
public WaitResponse ( DataReceivedDelegate responseHandler, int millisecondsTimeout ) : void
responseHandler DataReceivedDelegate delegate which handles response data
millisecondsTimeout int timeout in milliseconds
return void