System.Bluetooth.TBluetoothSocket
Delphi
TBluetoothSocket = class
C++
class PASCALIMPLEMENTATION TBluetoothSocket : public System::TObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | System.Bluetooth |
Description
Allows you to establish a connection to a remote device and send and receive data from the remote device.
To obtain an instance of TBluetoothSocket, do either of the following:
- As the client of the connection, call CreateClientSocket on an instance of TBluetoothDevice. You must then call Connect on the socket to start the connection to the remote device.
- As the server of the connection, call Accept on an instance of TBluetoothServerSocket. The socket that Accept returns is already connected.
Once you have a connected socket, you can call SendData and ReceiveData to send and receive data.