System.Tether.Manager.TTetheringAdapter.StartManagersDiscovery
Delphi
procedure StartManagersDiscovery(const ATarget: string); overload;
procedure StartManagersDiscovery(Timeout: Cardinal; const ATarget: string); overload;
procedure StartManagersDiscovery(const ATargetList: TTetheringTargetHosts); overload;
procedure StartManagersDiscovery(Timeout: Cardinal; const ATargetList: TTetheringTargetHosts; const AProfileGroups: TArray<string> = nil; const AProfileTexts: TArray<string> = nil); overload; virtual;
C++
void __fastcall StartManagersDiscovery(const System::UnicodeString ATarget)/* overload */;
void __fastcall StartManagersDiscovery(unsigned Timeout, const System::UnicodeString ATarget)/* overload */;
void __fastcall StartManagersDiscovery(const System::DynamicArray<System::UnicodeString> ATargetList)/* overload */;
virtual void __fastcall StartManagersDiscovery(unsigned Timeout, const System::DynamicArray<System::UnicodeString> ATargetList, const System::DynamicArray<System::UnicodeString> AProfileGroups = System::DynamicArray<System::UnicodeString>(), const System::DynamicArray<System::UnicodeString> AProfileTexts = System::DynamicArray<System::UnicodeString>())/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringAdapter |
Description
Calls DoDiscoverManagers to start the discovery of remote managers for connection to the Manager of the adapter. TTetheringManager.DiscoverManagers calls StartManagersDiscovery on each registered adapter.
StartManagersDiscovery accepts two parameters:
Timeout
(Optional): Time in milliseconds that the discovery should last before the adapter registers in this manager any discovered remote manager. If you do not specify it, StartManagersDiscovery uses an adapter-specific value.- For network adapters, TTetheringNetworkAdapterCommon.GetAutomaticTimeout is called to provide the value.
- For Bluetooth adapters, TTetheringBluetoothAdapter.GetAutomaticTimeout is called to provide the value.
ATargetList
orATarget
: You can specify a list of one or more targets for the discovery.- For network adapters,
ATargetList
can be a list of IP adresses or subnets. If you pass an empty string for this parameter, the adapter will search for managers on the local network. - For Bluetooth adapters,
ATargetList
can be a list of Bluetooth device names or Bluetooth MAC addresses. If you pass an empty string for this parameter, the adapter will search for managers from the list of paired devices.
- For network adapters,
StartManagersDiscovery creates a timer that calls EndManagersTimer after the specified TimeOut
.
See Also
- System.Cardinal
- System.Bluetooth.TBluetoothService
- System.Tether.Manager.TTetheringManager.DiscoverManagers
- System.Tether.Manager.TTetheringAdapter.EndManagersTimer
- System.Tether.Manager.TTetheringAdapters.Adapters
- System.Tether.Manager.TTetheringAdapter.Manager
- System.Tether.Manager.TTetheringAdapter.StartManagersAutoConnect
- System.Tether.Manager.TTetheringAdapter.DoDiscoverManagers