Discuss this help topic in SecureBlackbox Forum


TElWebSocketBase     See also     

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

This event is fired when a portion of binary data is received.


    event TSBWSBinaryDataEvent OnBinaryData;
    delegate void TSBWSBinaryDataEvent(Object Sender, byte[] Buffer, bool Last);

    Event OnBinaryData As TSBWSBinaryDataEvent
    Delegate Sub TSBWSBinaryDataEvent(ByVal Sender As Object, ByVal Buffer As Byte(), ByVal Last As Boolean)

    property OnBinaryData : TSBWSBinaryDataEvent;
    TSBWSBinaryDataEvent = procedure(Sender : TObject; Buffer : pointer; Size : integer; Last : boolean) of object;

    void get_OnBinaryData(TSBWSBinaryDataEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBinaryData(TSBWSBinaryDataEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWSBinaryDataEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t Size, int8_t Last);

    TSBWSBinaryDataEvent|callable|NULL get_OnBinaryData()
    void set_OnBinaryData(TSBWSBinaryDataEvent|callable|NULL $Value)
    callable TSBWSBinaryDataEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $Size, bool $Last)

    TSBWSBinaryDataEvent getOnBinaryData();
    void setOnBinaryData(TSBWSBinaryDataEvent Value);
    TSBWSBinaryDataEvent.Callback OnBinaryData = new TSBWSBinaryDataEvent.Callback() {
        public void TSBWSBinaryDataEventCallback(TObject arg0, byte[] arg1, boolean arg2) {


  • Buffer - buffer containing the received data.
  • Size - specifies the size of the data in bytes.
  • Last - indicates whether the received piece of data is the final part of a message.


    This event is fired when the component receives a piece of binary data.

See also:     OnTextData    

Discuss this help topic in SecureBlackbox Forum