Discuss this help topic in SecureBlackbox Forum


TElSSLClass     See also     

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

This event is used to pass the decoded data to the application.


    event TSBDataEvent OnData;
    delegate void TSBDataEvent(Object Sender, byte[] Buffer);

    Event OnData As TSBDataEvent
    Delegate Sub TSBDataEvent(ByVal Sender As Object, ByVal Buffer As Byte())

    property OnData: TSBDataEvent;
    TSBDataEvent = procedure(Sender: TObject; Buffer: pointer; Size: longint) of object;

    void get_OnData(TSBDataEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnData(TSBDataEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBDataEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t Size);

    TSBDataEvent|callable|NULL get_OnData()
    void set_OnData(TSBDataEvent|callable|NULL $Value)
    callable TSBDataEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $Size)


  • Buffer - the block of decoded data ready to use by application
  • Size - the length of the data block


    This event is fired by TElSSLClient/TElSSLServer when it has decoded the received data block and this data block is ready to be used by the application.
    If the application uses synchronous data exchange, it should write the data to some buffer and then synchronously read the data from that buffer.

See also:     TElSSLClient.DataAvailable     TElSSLServer.DataAvailable     OnReceive    

Discuss this help topic in SecureBlackbox Forum