System.Bluetooth.TBluetoothAdapter.CreateServerSocket
Delphi
function CreateServerSocket(const AName: string; const AUUID: TGUID; Secure: Boolean): TBluetoothServerSocket;
C++
TBluetoothServerSocket* __fastcall CreateServerSocket(const System::UnicodeString AName, const GUID &AUUID, bool Secure);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothAdapter |
Description
Creates a server socket that provides a Bluetooth service.
CreateServerSocket receives the following parameters:
ANameis the human-readable name of your new Bluetooth service, such as "My Bluetooth Service".AUUIDis the unique identifier of your new Bluetooth service, such as "{00001135-0000-1000-8000-00805F9B34FF}".Securedetermines 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.