API:System.Tether.AppProfile.TTetheringAppProfile.OnStreamReceived
Delphi
procedure OnStreamReceived(const Sender: TObject; const AProfileId: string; const AStream: TStream; const ADescription: string); override;
C++
virtual void __fastcall OnStreamReceived(System::TObject* const Sender, const System::UnicodeString AProfileId, System::Classes::TStream* const AStream, const System::UnicodeString ADescription);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Handles an incoming stream that a connected remote profile sends. {{#multireplace:System.Tether.AppProfile.TTetheringAppProfile.OnStreamReceived|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.Tether.Manager.TTetheringProfile.OnStreamReceived|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.Tether.Manager.TTetheringProfile.OnStreamReceived|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Handles an incoming stream that a connected remote profile sends.
When a connected remote profile sends a stream to your profile, you can read this stream from the AStream parameter of OnStreamReceived.
OnStreamReceived receives the following parameters:
Senderis the protocol that receives the stream from a connected remote profile.AProfileIdis the identifier of the connected remote profile that sends the stream.AStreamis the stream.ADescriptionis a string that describes the content of the stream.
See Also
- System.Tether.Manager.TTetheringProtocol
- System.Tether.Manager.TTetheringProfileInfo.ProfileIdentifier
- System.Classes.TStream
- System.String