System.Tether.NetworkAdapter.TTetheringNetworkManagerCommunicationThread.StartListening
Delphi
function StartListening(const ATarget: string): Boolean; virtual;
C++
virtual bool __fastcall StartListening(const System::UnicodeString ATarget);
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | protected | System.Tether.NetworkAdapter.pas System.Tether.NetworkAdapter.hpp |
System.Tether.NetworkAdapter | TTetheringNetworkManagerCommunicationThread |
Description
Commence l'écoute des connexions entrantes sur le port spécifié (ATarget), et renvoie True en cas de réussite ou False dans le cas contraire.
Si StartListening renvoie False, appelez StopListening pour corriger l'état dans lequel un appel StartListening ayant échoué provoque une sortie du thread de communication.