System.Tether.Comm.TTetheringCustomComm.OnBeforeSendData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnBeforeSendData: TTetheringDataEvent read FOnBeforeSendData write FOnBeforeSendData;

C++

__property TTetheringDataEvent OnBeforeSendData = {read=FOnBeforeSendData, write=FOnBeforeSendData};

Properties

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

Description

Event to post-process the data before you send it to the remote protocol.

OnBeforeSendData allows you to process the raw data before you send it to the remote protocol.

Because OnBeforeSendData acts as an exit point for the raw data that you send, you can use OnBeforeSendData to compress or scramble the data.

The event handler of this event accepts the following parameters:

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

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

See Also