System.Tether.BluetoothAdapter.TTetheringBluetoothManagerCommunicationThread.Create
Delphi
constructor Create(const AnAdapter: TTetheringAdapter; const AEvent: TEvent); override;
C++
__fastcall virtual TTetheringBluetoothManagerCommunicationThread(System::Tether::Manager::TTetheringAdapter* const AnAdapter, System::Syncobjs::TEvent* const AEvent);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
constructor | public | System.Tether.BluetoothAdapter.pas System.Tether.BluetoothAdapter.hpp |
System.Tether.BluetoothAdapter | TTetheringBluetoothManagerCommunicationThread |
Description
Crée une instance de TTetheringBluetoothManagerCommunicationThread.
Il crée un socket serveur et un socket client pour communiquer sur Classic Bluetooth.
Le constructeur TTetheringBluetoothManagerCommunicationThread reçoit les paramètres suivants :
AnAdapter
est l'instance de TTetheringBluetoothAdapter qui possède la nouvelle instance de TTetheringBluetoothManagerCommunicationThread.AEvent
est un TEvent. Vous pouvez utiliser cet événement pour attendre la fin de l'exécution du thread.