System.Bluetooth.TBluetoothAdapter.DoCreateServerSocket

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

Delphi

function DoCreateServerSocket(const AName: string; const AUUID: TGUID; Secure: Boolean): TBluetoothServerSocket; virtual; abstract;

C++

virtual TBluetoothServerSocket* __fastcall DoCreateServerSocket(const System::UnicodeString AName, const GUID &AUUID, bool Secure) = 0 ;

プロパティ

種類 可視性 ソース ユニット
function protected
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothAdapter


説明

メモ: これは、TBluetoothAdapter のプラットフォーム固有のサブクラスで実装される抽象メソッドです。

Bluetooth サービスを提供するサーバー ソケットを作成します。

DoCreateServerSocketCreateServerSocket から呼び出されます。

DoCreateServerSocket は、次のパラメータを受け取ります:

  • AName: 作成する Bluetooth サービスの、人間にとって判読可能な名前。"My Bluetooth Service" など。
  • AUUID: 作成する Bluetooth サービスの一意の識別子。"{00001135-0000-1000-8000-00805F9B34FF}" など。
  • Secure: 作成する Bluetooth サービスに対する接続がセキュアでなければならないか(True)、そうでなくてもよいか(False)。セキュアな接続を要求する場合、サービスに接続するリモート デバイスは認証が必要になり、サービスとの通信は暗号化されます。

関連項目