System.Tether.Manager.TTetheringAdapter.EndProfilesTimerProc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndProfilesTimerProc(const Sender: TObject); virtual;

C++

virtual void __fastcall EndProfilesTimerProc(System::TObject* const Sender);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Tether.Manager.pas
System.Tether.Manager.hpp
System.Tether.Manager TTetheringAdapter

Description

Event handler called when the operation to discover remote profiles published by a remote manager finishes, either successfully or due to a time out.

When the manager of your adapter pairs with a remote manager, each manager requests the other manager information about the profiles that the target manager provides. After your manager requests the profile information from the remote manager, your manager waits for some time (5 seconds by default) for a response.

Whether or not the remote manager provides a response in time determines the content of the Sender parameter:

  • If your adapter receives information about the remote profiles within the maximum response time (timeout), your adapter calls EndProfilesTimerProc. In this case, Sender is the list of remote profiles. You can cast Sender as an instance of TTetheringProfileInfoList.
  • If the maximum time passes and your adapter does not receive information about the remote profiles, your adapter calls EndProfilesTimerProc as well. However, in this case, Sender is null.

EndProfilesTimerProc passes the list of remote profiles (Sender) to its manager, which triggers OnEndProfilesDiscovery.

See Also