TwclRfCommServer Class
Bluetooth RFCOMM server.
type TwclRfCommServer = class(TwclBluetoothComponent) end;
The TwclRfCommServer type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates a new component. (Overrides TwclBluetoothComponent.Create(TComponent).) | |
Destroy | Frees the component. (Overrides TwclBluetoothComponent.Destroy.) |
Name | Description | |
---|---|---|
AssignedChannel | Gets the RFCOMM assigned channel number. | |
Authentication | Gets and sets the authentication value. | |
Channel | Gets and sets the service RFCOMM channel number. | |
Clients[Integer] | Gets the connected client by its index. | |
Count | Gets the number of the connected clients. | |
Encryption | Gets and sets the encryption state of the connection. | |
OnListen | The event fires when the serve ris ready to accept incomming connections (is in listening state). | |
Radio | Gets the connection radio object. | |
Service | Gets and sets the Bluetooth service UUID used for connection. | |
ServiceName | Gets and sets the service name. | |
State | Gets the current connection state. |
Name | Description | |
---|---|---|
Close | Closes the server. | |
DoClosed(Integer) | Fires the | |
DoConnect(TwclRfCommServerClientConnection,Integer) | Fires the | |
DoCreateProcessor(TwclServerClientDataConnection) | Fires the | |
DoData(TwclRfCommServerClientConnection,Pointer,Cardinal) | Fires the | |
DoDestroyProcessor(TwclServerClientDataConnection) | Fires the | |
DoDisconnect(TwclRfCommServerClientConnection,Integer) | Fires the | |
DoGetSdpAttributes(TwclBluetoothSdpProtocols,TwclBluetoothSdpProfiles,TwclBluetoothSdpFormats,Cardinal) | Fires the | |
DoListen | Fires the | |
Enter | Enters the Bluetooth component protection critical section. (Inherited from TwclBluetoothComponent.) | |
Leave | Leaves the Bluetooth component protection critical section. (Inherited from TwclBluetoothComponent.) | |
Listen(TwclBluetoothRadio) | The method starts listening for client connections. | |
SetCopy(TwclCustomConnection) | The method sets new copy of the current connection. (Inherited from TwclBluetoothComponent.) |
Name | Description | |
---|---|---|
GetSdpAttributes | The event fires when the server builds SDP record for the service it runs. If an application needs to provide additinal attributes it should handle the event. By default no additional attributes is added for the SDP record. | |
OnClosed | The event fires when the server is closed. | |
OnConnect | The event fires when a remote client is connected to the server. | |
OnCreateProcessor | The event fires when connection to a remote device has been established with success to allow application provide a data processor for the connection. | |
OnData | The event fires when new data is received from the connected remote device. | |
OnDestroyProcessor | The event fires when connection to a remote device has been terminated. An application must destroy the Data Processor created for the connection. | |
OnDisconnect | The event fires when a remote client has disconnected from the server. |
The TwclRfCommClient
component enables an
application to accept connections from Bluetooth devices through RFCOMM
protocol and work with RFCOMM based profiles (SPP, OBEX,
others).