Den::CCommonServer Class Reference

class Den::CCommonServer : public CPolicyServer

Inherits from

Public Member Functions
~CCommonServer()
IMPORT_C TBoolCanShutdown()
CCommonDealer *Dealer()
voidFreeMemory(TAny *)
TServerName &ServerName()
TDblQueIter< CSession2 > &SessionIterator()
voidSetDealer(CCommonDealer *)
CommsFW::TWorkerId WorkerId()
CCommonWorkerThread &WorkerThread()
Protected Member Functions
CCommonServer(TInt, CCommonWorkerThread *, const TPolicy &, TServerType, const TDesC &)
TVersion CurrentVersion()
voidDoFreeMemory()
CSession2 *DoNewSessionL(const TProcessId &, const TUidType &)
IMPORT_C CSession2 *NewSessionL(const TVersion &, const RMessage2 &)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
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()
CPolicyServer::CPolicyServer(TInt,const TPolicy &,TServerType)
CPolicyServer::CheckFailedL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomFailureActionL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomSecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CPolicyServer::Extension_(TUint,TAny *&,TAny *)
CPolicyServer::ProcessError(const RMessage2 &,TInt)
CPolicyServer::ProcessL(const RMessage2 &)
CServer2::CServer2(TInt,TServerType)
CServer2::DoCancel()
CServer2::DoConnect(const RMessage2 &)
CServer2::Message()const
CServer2::ReStart()
CServer2::Server()const
CServer2::SetMaster(const CServer2 *)
CServer2::SetPinClientDescriptors(TBool)
CServer2::Start(const TDesC &)
CServer2::StartL(const TDesC &)
CServer2::~CServer2()
Inherited Enumerations
CActive:TPriority
CPolicyServer:TCustomResult
CPolicyServer:TFailureAction
CPolicyServer:TSpecialCase
CServer2:TPanic
CServer2:TServerType
Private Member Type Definitions
typedef TBuf< EMaxServerNameLength > TServerName
Private Attributes
CCommonDealer *iDealer
CCommonWorkerThread *iOwnerThread
TServerName iServerName
Inherited Attributes
CActive::iStatus
CServer2::iSessionIter

Constructor & Destructor Documentation

CCommonServer(TInt, CCommonWorkerThread *, const TPolicy &, TServerType, const TDesC &)

IMPORT_CCCommonServer(TIntaPriority,
CCommonWorkerThread *aOwnerThread,
const TPolicy &aPolicy,
TServerTypeaType,
const TDesC &aName
)[protected]

Parameters

TInt aPriority
CCommonWorkerThread * aOwnerThread
const TPolicy & aPolicy
TServerType aType
const TDesC & aName

~CCommonServer()

IMPORT_C~CCommonServer()

Member Functions Documentation

CanShutdown()

IMPORT_C TBoolCanShutdown()

CurrentVersion()

TVersion CurrentVersion()const [protected, pure virtual]

Dealer()

CCommonDealer *Dealer()[inline]

DoFreeMemory()

voidDoFreeMemory()[protected]

DoNewSessionL(const TProcessId &, const TUidType &)

CSession2 *DoNewSessionL(const TProcessId &aProcessId,
const TUidType &aProcessUid
)const [protected, pure virtual]

Parameters

const TProcessId & aProcessId
const TUidType & aProcessUid

FreeMemory(TAny *)

voidFreeMemory(TAny *)[static]

Parameters

TAny *

NewSessionL(const TVersion &, const RMessage2 &)

IMPORT_C CSession2 *NewSessionL(const TVersion &aVersion,
const RMessage2 &aMessage
)const [protected, virtual]

Creates a server-side session object.

The session represents a communication link between a client and a server, and its creation is initiated by the client through a call to one of the RSessionBase::CreateSession() variants.

A server must provide an implementation, which as a minimum should:

  • check that the version of the server is compatible with the client by comparing the client supplied version number against the server's version number; it should leave if there is incompatibility.

  • construct and return the server side client session object.

User::QueryVersionSupported()

Parameters

const TVersion & aVersionThe version information supplied by the client.
const RMessage2 & aMessageRepresents the details of the client request that is requesting the creation of the session.

ServerName()

TServerName &ServerName()[inline]

SessionIterator()

TDblQueIter< CSession2 > &SessionIterator()[inline]

SetDealer(CCommonDealer *)

voidSetDealer(CCommonDealer *aDealer)[inline]

Parameters

CCommonDealer * aDealer

WorkerId()

CommsFW::TWorkerId WorkerId()const [inline]

WorkerThread()

CCommonWorkerThread &WorkerThread()const [inline]

Member Type Definitions Documentation

Typedef TServerName

typedef TBuf< EMaxServerNameLength >TServerName[private]

Member Data Documentation

CCommonDealer * iDealer

CCommonDealer *iDealer[private]

CCommonWorkerThread * iOwnerThread

CCommonWorkerThread *iOwnerThread[private]

TServerName iServerName

TServerName iServerName[private]