Click or drag to resize

wclRfCommServer Class

Bluetooth RFCOMM server.
Inheritance Hierarchy
SystemObject
  wclBluetoothwclBluetoothComponent
    wclBluetoothwclRfCommServer

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public class wclRfCommServer : wclBluetoothComponent

The wclRfCommServer type exposes the following members.

Constructors
 NameDescription
Public methodwclRfCommServer Creates a new component.
Top
Properties
 NameDescription
Public propertyAssignedChannel Gets the RFCOMM assigned channel number.
Public propertyAuthentication Gets and sets the authentication value.
Public propertyChannel Gets and sets the service RFCOMM channel number. 0 to auto detection.
Public propertyCount Gets the number of the connected clients.
Public propertyEncryption Gets and sets the encryption state of the connection.
Public propertyItem Gets the connected client by its index.
Public propertyRadio Gets the connection radio object.
Public propertyService Gets and sets the Bluetooth service UUID used for connection.
Public propertyServiceName Gets and sets the service name.
Public propertyState Gets the current connection state.
Top
Methods
 NameDescription
Public methodClose Closes the server.
Protected methodDoClosed Fires the OnClosed event.
Protected methodDoConnect Fires the OnConnect event.
Protected methodDoCreateProcessor Fires the OnCreateProcessor event.
Protected methodDoData Fires the OnData event.
Protected methodDoDestroyProcessor Fires the OnDestroyProcessor event.
Protected methodDoDisconnect Fires the OnDisconnect event.
Protected methodDoGetSdpAttributes Fires the GetSdpAttributes event.
Protected methodDoListen Fires the OnListen event.
Protected methodEnter Enters the Bluetooth component protection critical section.
(Inherited from wclBluetoothComponent)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodLeave Leaves the Bluetooth component protection critical section.
(Inherited from wclBluetoothComponent)
Public methodListen The method starts listening for client connections.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventGetSdpAttributes The event fires when the server builds SDP record for the service it runs. If an application needs to provide additional attributes it should handle the event. By default no additional attributes is added for the SDP record.
Public eventOnClosed The event fires when the server is closed.
Public eventOnConnect The event fires when a remote client is connected to the server.
Public eventOnCreateProcessor The event fires when connection to a remote device has been established with success to allow application provide a data processor for the connection.
Public eventOnData The event fires when new data is received from the connected remote device.
Public eventOnDestroyProcessor The event fires when connection to a remote device has been terminated. An application must destroy the Data Processor created for the connection.
Public eventOnDisconnect The event fires when a remote client has disconnected from the server.
Public eventOnListen The event fires when the server is ready to accept incoming connections (is in listening state).
Top
Remarks
The TwclRfCommClient component enables an application to accept connections from Bluetooth devices through RFCOMM protocol and work with RFCOMM based profiles (SPP, OBEX, others).
See Also