TwclRfCommClientConnection Class

The base class for all Classic Bluetooth (RFCOMM) client connections.

Namespace: wclBluetooth
type
 TwclRfCommClientConnection = class(TwclClientDataConnection)
 end;

The TwclRfCommClientConnection type exposes the following members.

Show:
 NameDescription
Create(TwclBluetoothRadio)

Create new Classis Bluetooth client connection.

Top
Show:
 NameDescription
Address

Gets a remote device MAC address.

Authentication

Gets the authentication value.

Channel

Gets the target service RFCOMM channel number. 0 to auto detection.

Encryption

Gets the encryption state of the connection.

Processor

Gets the current Data Processor object assigned to the Connection. (Inherited from TwclClientDataConnection.)

Radio

Gets the connection owner.

Receiver

Gets the connection message receiver object. (Inherited from TwclCustomConnection.)

Service

Gets the target Bluetooth service UUID used for connection.

State

Gets the connection state. (Inherited from TwclClientConnection.)

ThreadId

Gets the connection's thread ID. (Inherited from TwclCustomConnection.)

Timeout

Gets the connect timeout value. (Inherited from TwclClientConnection.)

Top
Show:
 NameDescription
Connect(Int64,TGUID,Byte,Boolean,Boolean,Cardinal)

Connects to a remote device.

Disconnect

Disconnects from the connected remote device. (Inherited from TwclClientConnection.)

DoConnect(Integer)

Fires the OnConnect event. (Inherited from TwclClientConnection.)

DoData(Pointer,Cardinal)

Fires the OnData event. (Inherited from TwclClientDataConnection.)

DoDisconnect(Integer)

Fires the OnDisconnect event. (Inherited from TwclClientConnection.)

Enter

Enters the connection's critical section. (Inherited from TwclCustomConnection.)

GetReadBufferSize(Cardinal)

Reads the read buffer size. (Inherited from TwclClientDataConnection.)

GetWriteBufferSize(Cardinal)

Reads the write buffer size. (Inherited from TwclClientDataConnection.)

HalCommunicate(THandle)

Implements a hardware-dependent code that communicate with the connected remote device. (Inherited from TwclClientConnection.)

HalConnect(THandle)

Implements a hardware-dependent code that connects to a remote device. (Inherited from TwclClientConnection.)

HalDisconnect

Implements a hardware-dependent code that disconnects from the connected remote device. (Inherited from TwclClientConnection.)

HalGetReadBufferSize(Cardinal)

Reads the read buffer size. (Inherited from TwclClientDataConnection.)

HalGetWriteBufferSize(Cardinal)

Reads the write buffer size. (Inherited from TwclClientDataConnection.)

HalSetReadBufferSize(Cardinal)

Sets the read buffer size. (Inherited from TwclClientDataConnection.)

HalSetWriteBufferSize(Cardinal)

Sets the write buffer size. (Inherited from TwclClientDataConnection.)

HalWrite(Pointer,Cardinal,Cardinal)

Implements a hardware-dependent code that sends data to the connected device. (Inherited from TwclClientDataConnection.)

InternalDisconnect(Integer)

The internal disconnect method. Disconnects from a connected remote device. (Inherited from TwclClientConnection.)

Leave

Exists *leaves) the connection's critical section. (Inherited from TwclCustomConnection.)

MessageReceived(TwclMessage)

The method called when a new notification message received. (Overrides TwclClientDataConnection.MessageReceived(TwclMessage).)

NotifyClosed(Integer)

Send a Disconnect notification message. (Inherited from TwclClientConnection.)

NotifyDataReceived(Pointer,Cardinal)

Send a data notification message. (Inherited from TwclClientDataConnection.)

SetReadBufferSize(Cardinal)

Sets the read buffer size. (Inherited from TwclClientDataConnection.)

SetWriteBufferSize(Cardinal)

Sets the write buffer size. (Inherited from TwclClientDataConnection.)

Write(Pointer,Cardinal,Cardinal)

Sends data to the connected device. (Inherited from TwclClientDataConnection.)

Top
Show:
 NameDescription
OnConnect

The event fires when a connection to a remote device has been completed (with or without success). (Inherited from TwclClientConnection.)

OnData

The event fires when new data is received from the connected remote device. (Inherited from TwclClientDataConnection.)

OnDisconnect

The event fires when the remote connected device has been disconnected. (Inherited from TwclClientConnection.)

Top

An application must never create instances of this class directly. Instead of that an application must use related methods from the TwclBluetoothRadio object.