System.Tether.Comm.TTetheringCustomComm.OnAfterReceiveData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAfterReceiveData: TTetheringDataEvent read FOnAfterReceiveData write FOnAfterReceiveData;

C++

__property TTetheringDataEvent OnAfterReceiveData = {read=FOnAfterReceiveData, write=FOnAfterReceiveData};

Properties

Type Visibility Source Unit Parent
event public
System.Tether.Comm.pas
System.Tether.Comm.hpp
System.Tether.Comm TTetheringCustomComm

Description

Event to pre-process the data that the remote protocol sends.

OnAfterReceiveData allows you to process the raw data that you receive from the remote protocol.

Because OnAfterReceiveData acts as an entry point for the raw data that you receive, you can use OnAfterReceiveData to decompress or descramble the received data.

The event handler of this event accepts the following parameters:

  • Sender: the instance of the client that receives the data.
  • ADataBuffer: the raw data that the client receives (array of bytes).

The event handler of OnAfterReceiveData needs to return the processed data.

See Also