TwclRfCommServer Class

Bluetooth RFCOMM server.

Namespace: wclBluetooth
TComponent
  wclBluetooth.TwclBluetoothComponent
    wclBluetooth.TwclRfCommServer
type
 TwclRfCommServer = class(TwclBluetoothComponent)
 end;

The TwclRfCommServer type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates a new component. (Overrides TwclBluetoothComponent.Create(TComponent).)

Destroy

Frees the component. (Overrides TwclBluetoothComponent.Destroy.)

Top
Show:
 NameDescription
AssignedChannel

Gets the RFCOMM assigned channel number.

Authentication

Gets and sets the authentication value.

Channel

Gets and sets the service RFCOMM channel number. 0 to auto detection.

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.

Top
Show:
 NameDescription
Close

Closes the server.

DoClosed(Integer)

Fires the OnClosed event.

DoConnect(TwclRfCommServerClientConnection,Integer)

Fires the OnConnect event.

DoCreateProcessor(TwclServerClientDataConnection)

Fires the OnCreateProcessor event.

DoData(TwclRfCommServerClientConnection,Pointer,Cardinal)

Fires the OnData event.

DoDestroyProcessor(TwclServerClientDataConnection)

Fires the OnDestroyProcessor event.

DoDisconnect(TwclRfCommServerClientConnection,Integer)

Fires the OnDisconnect event.

DoGetSdpAttributes(TwclBluetoothSdpProtocols,TwclBluetoothSdpProfiles,TwclBluetoothSdpFormats,Cardinal)

Fires the GetSdpAttributes event.

DoListen

Fires the OnListen event.

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.)

Top
Show:
 NameDescription
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.

Top

The TwclRfCommClient component enables an application to accept connections from Bluetooth devices through RFCOMM protocol and work with RFCOMM based profiles (SPP, OBEX, others).