Discuss this help topic in SecureBlackbox Forum

TElWebSocketBase.OnTextData

TElWebSocketBase     See also     


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


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

Declaration

[C#]
    event TSBWSTextDataEvent OnTextData;
    delegate void TSBWSTextDataEvent(Object Sender, string Text, bool Last);

[VB.NET]
    Event OnTextData As TSBWSTextDataEvent
    Delegate Sub TSBWSTextDataEvent(ByVal Sender As Object, ByVal Text As String, ByVal Last As Boolean)

[Pascal]
    property OnTextData : TSBWSTextDataEvent;
    TSBWSTextDataEvent = procedure(Sender : TObject; const Text : string; Last : boolean) of object;

[C++]
    void get_OnTextData(TSBWSTextDataEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnTextData(TSBWSTextDataEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWSTextDataEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcText, int32_t szText, int8_t Last);

[PHP]
    TSBWSTextDataEvent|callable|NULL get_OnTextData()
    void set_OnTextData(TSBWSTextDataEvent|callable|NULL $Value)
    callable TSBWSTextDataEvent(TObject $Sender, string $Text, bool $Last)

[Java]
    TSBWSTextDataEvent getOnTextData();
    void setOnTextData(TSBWSTextDataEvent Value);
    TSBWSTextDataEvent.Callback OnTextData = new TSBWSTextDataEvent.Callback() {
        public void TSBWSTextDataEventCallback(TObject Sender, String Text, boolean Last) {
            //...
        }
    }

Parameters

  • Text - the text that has been received.
  • Last - indicates whether the received text is the final part of a message.
  • pcText - the text that has been received.
  • szText - the length of pcText.

Description

    This event is fired by the component when it received text data.

See also:     OnBinaryData    

Discuss this help topic in SecureBlackbox Forum