System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetClientPeer

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.Tether.BluetoothAdapter.pas
System.Tether.BluetoothAdapter.hpp
System.Tether.BluetoothAdapter TTetheringBluetoothAdapter

説明

指定されたプロトコル タイプのプロトコルが、クライアントとして接続する際に使用できるオブジェクトを返します。

System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetClientPeer は System.Tether.Manager.TTetheringAdapter.GetClientPeer を継承しています。以下の内容はすべて System.Tether.Manager.TTetheringAdapter.GetClientPeer を参照しています。


指定されたプロトコル タイプのプロトコルが、クライアントとして接続する際に使用できるオブジェクトを返します。


GetClientPeer は、指定されたプロトコル タイプのプロトコルがサポートするクラスのオブジェクトを提供します。 たとえば、プロトコル タイプが "TCP"(TTetheringTCPProtocolタイプ)の場合、GetClientPeer は、IIPTCPClient のインスタンスを提供しなければなりません。

アダプタが指定されたプロトコル タイプをサポートしていない場合、GetClientPeer は null を返します。

関連項目