Serial Framework C++ Edition
Public Member Functions | Protected Member Functions | List of all members
CwclCustomConnection Class Reference

The base class for all WCL connections. More...

#include <wclConnections.h>

Inheritance diagram for CwclCustomConnection:
CwclClientConnection CwclServerClientConnection CwclServerConnection CwclClientDataConnection CwclServerClientDataConnection CwclServerDataConnection

Public Member Functions

 CwclCustomConnection ()
 Creates a new connection.
 
virtual ~CwclCustomConnection ()
 Frees the connection.
 
CwclMessageReceiverGetReceiver () const
 Gets the connection message receiver object.
 
 __declspec (property(get=GetReceiver)) CwclMessageReceiver *Receiver
 Gets the connection message receiver object.
 
DWORD GetThreadId () const
 Gets the connection's thread ID.
 
 __declspec (property(get=GetThreadId)) DWORD ThreadId
 Gets the connection's thread ID.
 

Protected Member Functions

virtual void MessageReceived (const CwclMessage *const Message)
 The message receiver calls this method when a new notification message has been received.
 
void Enter ()
 Enters the connection's critical section.
 
void Leave ()
 Exists *leaves) the connection's critical section.
 

Detailed Description

The base class for all WCL connections.

A connection implements a hardware-dependent methods to communicate with a remote devices: IrDA, Classic Bluetooth, BLE, Serial etc.