Click or drag to resize
wclRfCommServerConnection Class
The base class for all WCL Bluetooth RFCOMM based server connections.
Inheritance Hierarchy

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.3.0.0 (7.3.0.0)

The wclRfCommServerConnection type exposes the following members.

Constructors
  NameDescription
Public methodwclRfCommServerConnection
Create new Classis Bluetooth server connection.
Top
Properties
  NameDescription
Public propertyAssignedChannel
Gets the assigned RFCOMM channel number.
Public propertyAuthentication
Gets the authentication value.
Public propertyChannel
Gets the service RFCOMM channel number. 0 to auto detection.
Public propertyClientsCount
Gets the number of connected clients.
(Inherited from wclServerConnection.)
Public propertyEncryption
Gets the encryption state of the connection.
Public propertyItem
Gets a connected client by its index.
(Inherited from wclServerConnection.)
Public propertyRadio
Gets the connection owner.
Public propertyReceiver
Gets the connection message receiver object.
(Inherited from wclCustomConnection.)
Public propertyService
Gets the Bluetooth service UUID used for connection.
Public propertyServiceName
Gets the service name.
Public propertyState
Gets the connection state.
(Inherited from wclServerConnection.)
Public propertyThreadId
Gets the connection's thread ID.
(Inherited from wclCustomConnection.)
Top
Methods
  NameDescription
Public methodClose
The method disconnects all connected clients and closes the server.
(Inherited from wclServerConnection.)
Protected methodCreateNewClientConnection
Sends a notification to the main thread to create and init new client connection.
(Inherited from wclServerConnection.)
Protected methodDoClosed
Fires the OnClosed event.
(Inherited from wclServerConnection.)
Protected methodDoConnect
Fires the OnConnect event.
(Inherited from wclServerConnection.)
Protected methodDoData
Fires the OnData event.
(Inherited from wclServerDataConnection.)
Protected methodDoDisconnect
Fires the OnDisconnect event.
(Inherited from wclServerConnection.)
Protected methodDoGetSdpAttributes
Fires the GetSdpAttributes event.
Protected methodDoListen
Fires the OnListen event.
(Inherited from wclServerConnection.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Frees the server connection.
(Inherited from wclServerConnection.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodHalClose
Implements a hardware depended method to stop listening.
(Inherited from wclServerConnection.)
Protected methodHalCreateClient
The method crteates a hardware and transport depended client connection.
(Inherited from wclServerConnection.)
Protected methodHalListen
Implements a hardware depended method for listening the client connections.
(Inherited from wclServerConnection.)
Protected methodHalPrepare
Implements a hardware depended code that prepares for listening.
(Inherited from wclServerConnection.)
Protected methodInternalClose
Closes the server.
(Inherited from wclServerConnection.)
Public methodListen
The method starts listening for client connections.
(Inherited from wclServerConnection.)
Public methodListen(Guid, String, Byte, Boolean, Boolean)
The method starts listening for client connections.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMessageReceived
The method called when a new notification message received.
(Overrides wclServerConnectionMessageReceived(wclMessage).)
Protected methodSetAssignedChannel
Sets the assigned RFCOMM channel number.
Protected methodSetClientEvents
The method sets the client's event handlers.
(Inherited from wclServerDataConnection.)
Public methodToString (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 additinal 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.
(Inherited from wclServerConnection.)
Public eventOnConnect
The event fires when a remote client is connected to the server.
(Inherited from wclServerConnection.)
Public eventOnData
The event fires when new data is received from the connected remote device.
(Inherited from wclServerDataConnection.)
Public eventOnDisconnect
The event fires when a remote client has disconnected from the server.
(Inherited from wclServerConnection.)
Public eventOnListen
The event fires when the serve ris ready to accept incomming connections (is in listening state).
(Inherited from wclServerConnection.)
Top
Remarks
An application must never create instances of this class directly. Instead of that an application must use related methods from the wclBluetoothRadio object.
See Also