CCommChannelHandler Class Reference

class CCommChannelHandler : public CommsFW::CCFModuleChannelHandler

Main Comms Channel traffic handler for the serialserver. The adapter responsible for communicating with the Root Server over the channel given with the CommsFW::TCFModuleInfo structure delivered via the parameter to the main thread function.

Inherits from

Public Member Functions
CCommChannelHandler *NewL(CommsFW::RCFChannel::TMsgQueues, CommsFW::RCFChannel::TMsgQueues, CC32WorkerThread *)
TInt Send(const CommsFW::TCFMessage &)
Private Member Functions
CCommChannelHandler(CC32WorkerThread *)
voidCFMessageBind(const CommsFW::TCFBindMsg &)
voidCFMessageDiscover(const CommsFW::TCFDiscoverMsg &)
voidCFMessageShutdown(const CommsFW::TCFShutdownMsg &)
voidCFMessageUnbind(const CommsFW::TCFUnbindMsg &)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CommsFW::CCFModuleChannelHandler::CCFModuleChannelHandler(TInt)
CommsFW::CCFModuleChannelHandler::CFChannelError(TInt)
CommsFW::CCFModuleChannelHandler::CFMessageForward(const CommsFW::TCFForwardMsg &)
CommsFW::CCFModuleChannelHandler::CFMessageUnknown(const CommsFW::TCFMessage &)
CommsFW::CCFModuleChannelHandler::ConstructL(CommsFW::RCFChannel::TMsgQueues &,CommsFW::RCFChannel::TMsgQueues &)
CommsFW::CCFModuleChannelHandler::~CCFModuleChannelHandler()
Inherited Enumerations
CActive:TPriority
Private Member Type Definitions
typedef CommsFW::CCFModuleChannelHandler inherited
Private Attributes
CC32WorkerThread *iWorkerThread
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CCommChannelHandler(CC32WorkerThread *)

CCommChannelHandler(CC32WorkerThread *aWorkerThread)[private]

Parameters

CC32WorkerThread * aWorkerThread

Member Functions Documentation

CFMessageBind(const CommsFW::TCFBindMsg &)

voidCFMessageBind(const CommsFW::TCFBindMsg &aMessage)[private, virtual]

This will be called by the handler when a Bind message have been received from the Root Server. Delegating the call to the Worker Thread.

Parameters

const CommsFW::TCFBindMsg & aMessage

CFMessageDiscover(const CommsFW::TCFDiscoverMsg &)

voidCFMessageDiscover(const CommsFW::TCFDiscoverMsg &aMessage)[private, virtual]

This will be called by the handler when a Discovery message have been received from the Root Server. It will send a response, telling the Root Server that it has a single sub-module/binding point which is named after the WorkerID. As each Worker has a unique ID each worker thus also has a unique sub-module name to bind to, which potentially allows for simpler handling code and easy to interpret logs.

Parameters

const CommsFW::TCFDiscoverMsg & aMessage

CFMessageShutdown(const CommsFW::TCFShutdownMsg &)

voidCFMessageShutdown(const CommsFW::TCFShutdownMsg &aMessage)[private, virtual]

This will be called by the handler when a shutdown message have been received from the Root Server. Delegating the call to the Worker Thread.

Parameters

const CommsFW::TCFShutdownMsg & aMessage

CFMessageUnbind(const CommsFW::TCFUnbindMsg &)

voidCFMessageUnbind(const CommsFW::TCFUnbindMsg &aMessage)[private, virtual]

This will be called by the handler when a Unbind message have has received from the Root Server. Delegating the call to the Worker Thread.

Parameters

const CommsFW::TCFUnbindMsg & aMessage

NewL(CommsFW::RCFChannel::TMsgQueues, CommsFW::RCFChannel::TMsgQueues, CC32WorkerThread *)

CCommChannelHandler *NewL(CommsFW::RCFChannel::TMsgQueuesaRxQueues,
CommsFW::RCFChannel::TMsgQueuesaTxQueues,
CC32WorkerThread *aWorkerThread
)[static]

Send(const CommsFW::TCFMessage &)

TInt Send(const CommsFW::TCFMessage &aMessage)

Parameters

const CommsFW::TCFMessage & aMessage

Member Type Definitions Documentation

Typedef inherited

typedef CommsFW::CCFModuleChannelHandler inherited[private]

Member Data Documentation

CC32WorkerThread * iWorkerThread

CC32WorkerThread *iWorkerThread[private]

Pointer back to the worker thread owning this instance.