System.Tether.Manager.TTetheringManager.DiscoverManagers
Delphi
procedure DiscoverManagers(Timeout: Cardinal; const ATarget: string = ''); overload;
procedure DiscoverManagers(const ATarget: string = ''); overload;
procedure DiscoverManagers(Timeout: Cardinal; const ATargetList: TTetheringTargetHosts); overload;
procedure DiscoverManagers(const ATargetList: TTetheringTargetHosts); overload;
C++
void __fastcall DiscoverManagers(unsigned Timeout, const System::UnicodeString ATarget = System::UnicodeString())/* overload */;
void __fastcall DiscoverManagers(const System::UnicodeString ATarget = System::UnicodeString())/* overload */;
void __fastcall DiscoverManagers(unsigned Timeout, const System::DynamicArray<System::UnicodeString> ATargetList)/* overload */;
void __fastcall DiscoverManagers(const System::DynamicArray<System::UnicodeString> ATargetList)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringManager |
Description
Starts the discovery of remote managers on each registered adapter.
AutoConnect accepts two parameters:
Timeout
(Optional): Time in milliseconds that the discovery should last before each adapter registers in this manager any discovered remote manager.ATargetList
orATarget
(Optional): You can specify a list of one or more targets for the discovery.- For network adapters,
ATargetList
can be a list of IP addresses or subnets. If you do not specify this parameter, an 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 do not specify this parameter, an adapter will search for managers from the list of paired devices.
- For network adapters,
Exceptions
A call to DiscoverManagers may raise the following exception:
Exception | Exception.Message | Scenarios |
---|---|---|
Manager <manager identifier> is disabled. |
|