System.Bluetooth.TBluetoothAdapter.DoCreateServerSocket
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 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothAdapter |
Description
- Note: This is an abstract method that platform-specific subclasses of TBluetoothAdapter implement.
Creates a server socket that provides a Bluetooth service.
CreateServerSocket calls DoCreateServerSocket.
DoCreateServerSocket receives the following parameters:
AName
is the human-readable name of your new Bluetooth service, such as "My Bluetooth Service".AUUID
is the unique identifier of your new Bluetooth service, such as "{00001135-0000-1000-8000-00805F9B34FF}".Secure
determines whether connections to your new Bluetooth service should be secure (True
) or not (False
). If you request secure connections, remote devices connecting to your service are authenticated and communications with your service are encrypted.