API:System.Tether.BluetoothAdapter.TTetheringBluetoothAdapter.GetServerPeer

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

Delphi

function GetServerPeer(const ProtocolId: TTetheringProtocolType): TTetheringCustomServerComm; override;

C++

virtual System::Tether::Comm::TTetheringCustomServerComm* __fastcall GetServerPeer(const System::UnicodeString ProtocolId);

プロパティ

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

説明

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

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


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


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

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

関連項目