System.Tether.Manager.TTetheringAdapter.StartManagersAutoConnect
Delphi
procedure StartManagersAutoConnect(Timeout: Cardinal; const ATargetList: TTetheringTargetHosts;
const AProfileGroups, AProfileTexts: TArray<string>); overload; virtual;
procedure StartManagersAutoConnect(const ATargetList: TTetheringTargetHosts); overload;
C++
virtual void __fastcall StartManagersAutoConnect(unsigned Timeout, const TTetheringTargetHosts ATargetList, const System::DynamicArray<System::UnicodeString> AProfileGroups, const System::DynamicArray<System::UnicodeString> AProfileTexts)/* overload */;
void __fastcall StartManagersAutoConnect(const TTetheringTargetHosts ATargetList)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Tether.Manager.pas System.Tether.Manager.hpp |
System.Tether.Manager | TTetheringAdapter |
Description
Calls DoDiscoverManagers to start the discovery of remote managers for automatic connection to the Manager of the adapter. TTetheringManager.AutoConnect calls StartManagersAutoConnect on each registered adapter.
StartManagersAutoConnect accepts two parameters:
Timeout
(Optional): Time in milliseconds that the discovery should last before each adapter registers in this manager any discovered remote manager. If you do not specify it, StartManagersAutoConnect 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
: 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 asATargetList
, 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 asATargetList
, the adapter will search for managers from the list of paired devices.
- For network adapters,
StartManagersAutoConnect creates a timer that calls AutoConnectEndManagersTimer after the specified TimeOut
.
See Also
- System.Tether.Manager.TTetheringAdapters.Adapters
- System.Tether.Manager.TTetheringAdapter.AutoConnectEndManagersTimer
- System.Tether.Manager.TTetheringAdapter.Manager
- System.Tether.Manager.TTetheringAdapter.StartManagersDiscovery
- System.Tether.Manager.TTetheringAdapter.GetAutomaticTimeout