System.Bluetooth.TBluetoothDevice.CreateClientSocket
Delphi
function CreateClientSocket(const AUUID: TGUID; Secure: Boolean): TBluetoothSocket;
C++
TBluetoothSocket* __fastcall CreateClientSocket(const GUID &AUUID, bool Secure);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothDevice |
Description
Returns a socket to connect as a client to the specified service of the remote device and exchange data.
CreateClientSocket receives the following parameters:
AUUID
is the unique identifier of the service to connect.Secure
determines whether the connection to the service should be secure (True
), using device authentication and encrypted communication, or if the connection does not need to be secure (False
). Data transmission is faster using unsecure connections.