System.Tether.Manager.TTetheringAdapter.DoPairedFromLocal
Delphi
procedure DoPairedFromLocal(const AManagerIdentifier, AManagerName, AManagerText, AConnectionString: string; AVersion: Integer); virtual;
C++
virtual void __fastcall DoPairedFromLocal(const System::UnicodeString AManagerIdentifier, const System::UnicodeString AManagerName, const System::UnicodeString AManagerText, const System::UnicodeString AConnectionString, int AVersion);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringAdapter |
Description
Dispatcher of the OnPairedFromLocal event of the manager of the adapter, also responsible for starting the discovery of remote profiles provided by the paired remote manager.
During a pairing operation, your adapter calls DoPairedFromLocal when the remote adapter that starts the pairing request:
- Sends a password hash but your adapter does not require a password.
- Sends a password hash that matches the password of your adapter.
- Sends a password hash from a previous pairing operation with your adapter, and that hash matches the hash that your adapter saved from that previous pairing operation with the remote adapter.
This event dispatcher receives the following parameters with information about the remote manager that started the pairing request:
AManagerIdentifier
is the identifier of the manager.AManagerName
is the name of the manager.AManagerText
is the text that describes the manager.AConnectionString
is the connection string of the manager.
DoPairedFromLocal creates an instance of TTetheringManagerInfo with this information, and passes this instance to its manager.
The manager of your adapter:
- Adds the specified remote manager to its internal list of paired remote managers.
- Starts the discovery of profiles provided by the paired remote manager.
- Passes both a reference to itself and information about the remote manager to the handler of its OnPairedFromLocal event.
See Also
- System.Tether.Manager.TTetheringManager.OnPairedFromLocal
- System.Tether.Manager.TTetheringManagerPairedEvent
- System.Tether.Manager.TTetheringAdapter.Manager
- System.Tether.Manager.TTetheringAdapter.PairManager
- System.Tether.Manager.TTetheringAdapter.CheckPassword
- System.Tether.Manager.TTetheringAdapter.CheckToken
- System.Tether.Manager.TTetheringManager.Identifier
- System.Classes.TComponent.Name
- System.Tether.Manager.TTetheringManager.Text
- System.Tether.Manager.TTetheringManagerInfo.ConnectionString