Discuss this help topic in SecureBlackbox Forum

TElSSHTunnelConnection.OnData

TElSSHTunnelConnection     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event is fired when new portion of data is received via logical connection

Declaration

[C#/Java]
    event TSSHDataEvent OnData;
    delegate void TSSHDataEvent(object Sender, byte[] Buffer);

[VB.NET]
    Event OnData As TSSHDataEvent
    Delegate Sub TSSHDataEvent(ByVal Sender As Object, ByVal Buffer As Byte())

[Pascal]
    property OnData : TDataEvent;
    TDataEvent = procedure (Sender: TObject; Buffer : pointer; Size : longint) of object;

[C++]
    void get_OnData(TSSHDataEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnData(TSSHDataEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHDataEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t Size);

[PHP]
    TSSHDataEvent|callable|NULL get_OnData()
    void set_OnData(TSSHDataEvent|callable|NULL $Value)
    callable TSSHDataEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $Size)

Parameters

  • Buffer - buffer with decrypted data
  • Size - size of the buffer with decrypted data

Description

    Handle this event to read the actual data sent by the server to this logical connection. In case of command or shell tunnel, the data passed in this event is the standard output (stdout).
    Note, that there is no other way to receive decrypted logical connection data from server.

See also:     OnClose     OnError     OnExtendedData    

Discuss this help topic in SecureBlackbox Forum