System.Tether.Comm.TTetheringCustomComm.OnBeforeSendStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnBeforeSendStream: TTetheringStreamEvent read FOnBeforeSendStream write FOnBeforeSendStream;

C++

__property TTetheringStreamEvent OnBeforeSendStream = {read=FOnBeforeSendStream, write=FOnBeforeSendStream};

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 stream before you send it to the remote protocol.

OnBeforeSendStream allows you to process the raw stream before you send it to the remote protocol.

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

The event handler of this event accepts the following parameters:

  • Sender: the instance of the client that sends the stream.
  • AInputStream the raw stream that the client sends (stream object).
  • AOutputStream: the variable that holds the processed stream (stream object).

See Also