System.Tether.Comm.TTetheringCustomComm.OnAfterReceiveStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAfterReceiveStream: TTetheringStreamEvent read FOnAfterReceiveStream write FOnAfterReceiveStream;

C++

__property TTetheringStreamEvent OnAfterReceiveStream = {read=FOnAfterReceiveStream, write=FOnAfterReceiveStream};

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 stream that the remote protocol sends.

OnAfterReceiveStream allows you to process the raw stream that you receive from the remote protocol.

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

The event handler of this event accepts the following parameters:

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

See Also