API:System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetClientPeer

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetClientPeer(const ProtocolId: TTetheringProtocolType): TTetheringCustomComm; override;

C++

virtual System::Tether::Comm::TTetheringCustomComm* __fastcall GetClientPeer(const System::UnicodeString ProtocolId);

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Tether.BluetoothAdapter.pas
System.Tether.BluetoothAdapter.hpp
System.Tether.BluetoothAdapter TTetheringBluetoothAdapter

Description

Renvoie un objet qu'un protocole du type de protocole spécifié peut utiliser pour les connexions en tant que client.

System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetClientPeer hérite de System.Tether.Manager.TTetheringAdapter.GetClientPeer. Tout le contenu en-dessous de cette ligne se réfère à System.Tether.Manager.TTetheringAdapter.GetClientPeer.

Renvoie un objet qu'un protocole du type de protocole spécifié peut utiliser pour les connexions en tant que client.

GetClientPeer fournit un objet communication d'une classe qui est prise en charge par les protocoles du type de protocole spécifié. Par exemple, si le type de protocole est "TCP" (le type de TTetheringTCPProtocol), GetClientPeer doit fournir une instance de la classe de communication correspondante (TTetheringCustomComm) :

Si votre adaptateur ne prend pas en charge le type de protocole spécifié, GetClientPeer renvoie null.

Voir aussi