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.17.12.0 (7.17.12.0)
Syntax
public abstract class wclRfCommServerConnection : wclServerDataConnection

The wclRfCommServerConnection type exposes the following members.

Constructors
 NameDescription
Public methodwclRfCommServerConnection Create new Classic 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)
Protected methodEnter Enters the connection's critical section.
(Inherited from wclCustomConnection)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalize Frees the server connection.
(Inherited from wclServerConnection)
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 methodHalClose Implements a hardware-dependent method to stop listening.
(Inherited from wclServerConnection)
Protected methodHalCreateClient The method creates a hardware and transport-dependent client connection.
(Inherited from wclServerConnection)
Protected methodHalListen Implements a hardware-dependent method for listening the client connections.
(Inherited from wclServerConnection)
Protected methodHalPrepare Implements a hardware-dependent code that prepares for listening.
(Inherited from wclServerConnection)
Protected methodInternalClose Closes the server.
(Inherited from wclServerConnection)
Protected methodLeave Exists *leaves) the connection's critical section.
(Inherited from wclCustomConnection)
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 methodMemberwiseCloneCreates a shallow copy of the current Object.
(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 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.
(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 server is ready to accept incoming 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