Discuss this help topic in SecureBlackbox Forum

TElSSHTunnelConnection.OnData

TElSSHTunnelConnection     See also     


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


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

Declaration

[C#]
    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)

[Java]
    TSSHDataEvent getOnData();
    void setOnData(TSSHDataEvent Value);
    TSSHDataEvent.Callback OnData = new TSSHDataEvent.Callback() {
        public void TSSHDataEventCallback(TObject arg0, byte[] arg1) {
            //...
        }
    }

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