Den::CWorkerSession Class Reference

class Den::CWorkerSession : public CSession2

Inherits from

Public Member Functions
~CWorkerSession()
voidCleanupDeadWorker(CommsFW::TWorkerId)
voidCompleteDisconnect()
IMPORT_C voidConstructL(TProcessId)
voidCountSubSessions(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)
CCommonDealer *Dealer()
voidDisconnect()
IMPORT_C voidDisconnect(const RMessage2 &)
IMPORT_C voidDontCompleteCurrentRequest()
IMPORT_C voidGetOwnerInfo(TProcessId &, TUidType &)
IMPORT_C TBoolIsDisconnectListEmpty()
TBool IsPlayerInDisconnectList(CommsFW::TWorkerId)
IMPORT_C voidLogSubSession(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)
IMPORT_C voidPanicClient(const TDesC &, TInt)
CCommonPitBoss &PitBoss()
IMPORT_C voidProcessSubSessions(CommsFW::TWorkerId, TSubSessionProcessor, TAny *)
IMPORT_C voidSessionCloseResp(CommsFW::TWorkerId)
IMPORT_C voidSetReturn(TInt)
CSubSessionIx &SubSessions()
const CSubSessionIx &SubSessions()
const TSessionUniqueId &UniqueId()
CommsFW::TWorkerId WorkerId()
CCommonWorkerThread &WorkerThread()
Protected Member Functions
CWorkerSession(TUidType, TSessionUniqueId)
voidAddPlayerToDisconnectList(CommsFW::TWorkerId)
IMPORT_C voidCloseAllSessionIpcExtensions()
IMPORT_C voidCloseSessionIpcExtension(const RSafeMessage &, const TApiExtIdentification &)
TIpcExtensionRoutingMessageFromSession *DoIsSessionIpcExtensionSupported(TInt, TDes8 &)
voidForgetSubSession(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)
IMPORT_C voidForwardMessageL(const RMessage2 &, CWorkerSubSession *, CommsFW::TWorkerId)
IMPORT_C voidForwardMessageL(const RMessage2 &, CWorkerSubSession &)
IMPORT_C TIpcExtensionRoutingMessageFromSession *IsSessionIpcExtensionSupported(TInt, TDes8 &)
const RMessage2 &Message()
IMPORT_C voidOpenSessionIpcExtensionL(const RSafeMessage &, const TApiExtIdentification &)
voidOrphanSubSession(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)
IMPORT_C voidOrphanSubSessions()
IMPORT_C voidParkIfIndeterminateRequest(const RMessage2 &, TInt)
voidRemovePlayerFromDisconnectList(CommsFW::TWorkerId)
RSafeMessage &SafeMessage()
RSafeMessage &SafeMessage(const RMessage2 &)
IMPORT_C voidSendReceiveSessionIpcExtensionL(const RSafeMessage &, const TApiExtIdentification &)
IMPORT_C CWorkerSubSession *SubSessionFromHandle(TUint, TSubSessInfo)
Inherited Functions
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()
CSession2::CSession2()
CSession2::CountResources()
CSession2::Extension_(TUint,TAny *&,TAny *)
CSession2::ResourceCountMarkEnd(const RMessage2 &)
CSession2::ResourceCountMarkStart()
CSession2::Server()const
CSession2::ServiceError(const RMessage2 &,TInt)
CSession2::ServiceL(const RMessage2 &)
CSession2::SetServer(const CServer2 *)
CSession2::~CSession2()
Inherited Enumerations
CSession2:TPanicNo
Public Member Type Definitions
typedefvoid(* TSubSessionProcessor
Protected Attributes
TBool iComplete
RMessage2 iDisconnectMessage
TUint32 iDisconnectPlayers
const RMessage2 *iOurMessage
RProcess iProcess
TInt iReturn
CSubSessionIx iSubSessions
TUidType iUidType
Private Attributes
TApiExtRegister iApiExtRegister
TSessionUniqueId iSessionUniqueId

Constructor & Destructor Documentation

CWorkerSession(TUidType, TSessionUniqueId)

IMPORT_CCWorkerSession(TUidTypeaUid,
TSessionUniqueIdaSessionUniqueId
)[protected]

Parameters

TUidType aUid
TSessionUniqueId aSessionUniqueId

~CWorkerSession()

IMPORT_C~CWorkerSession()

Member Functions Documentation

AddPlayerToDisconnectList(CommsFW::TWorkerId)

voidAddPlayerToDisconnectList(CommsFW::TWorkerIdaPlayerId)[protected]

Parameters

CommsFW::TWorkerId aPlayerId

CleanupDeadWorker(CommsFW::TWorkerId)

voidCleanupDeadWorker(CommsFW::TWorkerIdaPeerId)

Parameters

CommsFW::TWorkerId aPeerId

CloseAllSessionIpcExtensions()

IMPORT_C voidCloseAllSessionIpcExtensions()[protected]

CloseSessionIpcExtension(const RSafeMessage &, const TApiExtIdentification &)

IMPORT_C voidCloseSessionIpcExtension(const RSafeMessage &aMessage,
const TApiExtIdentification &aExtIdentification
)[protected]

Parameters

const RSafeMessage & aMessage
const TApiExtIdentification & aExtIdentification

CompleteDisconnect()

voidCompleteDisconnect()

ConstructL(TProcessId)

IMPORT_C voidConstructL(TProcessIdaProcessId)

Parameters

TProcessId aProcessId

CountSubSessions(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)

voidCountSubSessions(CWorkerSession *aSession,
CWorkerSubSession *aSubSession,
TIntaSubSessionHandle,
TAny *aArg
)[static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

Dealer()

CCommonDealer *Dealer()const [inline]

Disconnect()

voidDisconnect()

Disconnect(const RMessage2 &)

IMPORT_C voidDisconnect(const RMessage2 &aMessage)[virtual]

Parameters

const RMessage2 & aMessage

DoIsSessionIpcExtensionSupported(TInt, TDes8 &)

TIpcExtensionRoutingMessageFromSession *DoIsSessionIpcExtensionSupported(TInt,
TDes8 &
)[protected, inline, virtual]

Parameters

TInt
TDes8 &

DontCompleteCurrentRequest()

IMPORT_C voidDontCompleteCurrentRequest()

ForgetSubSession(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)

voidForgetSubSession(CWorkerSession *aSession,
CWorkerSubSession *aSubSession,
TIntaSubSessionHandle,
TAny *aArg
)[protected, static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

ForwardMessageL(const RMessage2 &, CWorkerSubSession *, CommsFW::TWorkerId)

IMPORT_C voidForwardMessageL(const RMessage2 &aMessage,
CWorkerSubSession *aSS,
CommsFW::TWorkerIdaWorker
)[protected]

Parameters

const RMessage2 & aMessage
CWorkerSubSession * aSS
CommsFW::TWorkerId aWorker

ForwardMessageL(const RMessage2 &, CWorkerSubSession &)

IMPORT_C voidForwardMessageL(const RMessage2 &aMessage,
CWorkerSubSession &aSubSess
)[protected]

Parameters

const RMessage2 & aMessage
CWorkerSubSession & aSubSess

GetOwnerInfo(TProcessId &, TUidType &)

IMPORT_C voidGetOwnerInfo(TProcessId &aProcId,
TUidType &aUidType
)const

Parameters

TProcessId & aProcId
TUidType & aUidType

IsDisconnectListEmpty()

IMPORT_C TBoolIsDisconnectListEmpty()const

IsPlayerInDisconnectList(CommsFW::TWorkerId)

TBool IsPlayerInDisconnectList(CommsFW::TWorkerIdaPlayerId)const

Parameters

CommsFW::TWorkerId aPlayerId

IsSessionIpcExtensionSupported(TInt, TDes8 &)

IMPORT_C TIpcExtensionRoutingMessageFromSession *IsSessionIpcExtensionSupported(TIntaInterfaceId,
TDes8 &aBuff
)[protected]

Parameters

TInt aInterfaceId
TDes8 & aBuff

LogSubSession(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)

IMPORT_C voidLogSubSession(CWorkerSession *aSession,
CWorkerSubSession *aSubSession,
TIntaSubSessionHandle,
TAny *aArg
)[static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

Message()

const RMessage2 &Message()const [protected, inline]

OpenSessionIpcExtensionL(const RSafeMessage &, const TApiExtIdentification &)

IMPORT_C voidOpenSessionIpcExtensionL(const RSafeMessage &aMessage,
const TApiExtIdentification &aExtIdentification
)[protected]

Parameters

const RSafeMessage & aMessage
const TApiExtIdentification & aExtIdentification

OrphanSubSession(CWorkerSession *, CWorkerSubSession *, TInt, TAny *)

voidOrphanSubSession(CWorkerSession *aSession,
CWorkerSubSession *aSubSession,
TIntaSubSessionHandle,
TAny *aArg
)[protected, static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

OrphanSubSessions()

IMPORT_C voidOrphanSubSessions()[protected]

PanicClient(const TDesC &, TInt)

IMPORT_C voidPanicClient(const TDesC &aCategory,
TIntaPanic
)[static]

Parameters

const TDesC & aCategory
TInt aPanic

ParkIfIndeterminateRequest(const RMessage2 &, TInt)

IMPORT_C voidParkIfIndeterminateRequest(const RMessage2 &aMessage,
TIntaErrorIfConfigured
)[protected]

Parameters

const RMessage2 & aMessage
TInt aErrorIfConfigured

PitBoss()

CCommonPitBoss &PitBoss()const [inline]

ProcessSubSessions(CommsFW::TWorkerId, TSubSessionProcessor, TAny *)

IMPORT_C voidProcessSubSessions(CommsFW::TWorkerIdaPeerId,
TSubSessionProcessoraSubSessionProcessor,
TAny *aArg
)

Parameters

CommsFW::TWorkerId aPeerId
TSubSessionProcessor aSubSessionProcessor
TAny * aArg

RemovePlayerFromDisconnectList(CommsFW::TWorkerId)

voidRemovePlayerFromDisconnectList(CommsFW::TWorkerIdaPlayerId)[protected]

Parameters

CommsFW::TWorkerId aPlayerId

SafeMessage()

RSafeMessage &SafeMessage()const [protected, inline]

SafeMessage(const RMessage2 &)

RSafeMessage &SafeMessage(const RMessage2 &aMessage)const [protected, inline]

Parameters

const RMessage2 & aMessage

SendReceiveSessionIpcExtensionL(const RSafeMessage &, const TApiExtIdentification &)

IMPORT_C voidSendReceiveSessionIpcExtensionL(const RSafeMessage &aMessage,
const TApiExtIdentification &aExtIdentification
)[protected]

Parameters

const RSafeMessage & aMessage
const TApiExtIdentification & aExtIdentification

SessionCloseResp(CommsFW::TWorkerId)

IMPORT_C voidSessionCloseResp(CommsFW::TWorkerIdaPlayerId)

Parameters

CommsFW::TWorkerId aPlayerId

SetReturn(TInt)

IMPORT_C voidSetReturn(TIntaReturn)

Parameters

TInt aReturn

SubSessionFromHandle(TUint, TSubSessInfo)

IMPORT_C CWorkerSubSession *SubSessionFromHandle(TUintaHandle,
TSubSessInfoaType
)const [protected]

Parameters

TUint aHandle
TSubSessInfo aType

SubSessions()

CSubSessionIx &SubSessions()[inline]

SubSessions()

const CSubSessionIx &SubSessions()const [inline]

UniqueId()

const TSessionUniqueId &UniqueId()const [inline]

WorkerId()

CommsFW::TWorkerId WorkerId()const [inline]

WorkerThread()

CCommonWorkerThread &WorkerThread()const [inline]

Member Type Definitions Documentation

Typedef TSubSessionProcessor

typedef void(*TSubSessionProcessor

Member Data Documentation

TApiExtRegister iApiExtRegister

TApiExtRegister iApiExtRegister[private]

TBool iComplete

TBool iComplete[protected]

RMessage2 iDisconnectMessage

RMessage2 iDisconnectMessage[protected]

TUint32 iDisconnectPlayers

TUint32 iDisconnectPlayers[protected]

const RMessage2 * iOurMessage

const RMessage2 *iOurMessage[protected]

RProcess iProcess

RProcess iProcess[protected]

TInt iReturn

TInt iReturn[protected]

TSessionUniqueId iSessionUniqueId

TSessionUniqueId iSessionUniqueId[private]

CSubSessionIx iSubSessions

CSubSessionIx iSubSessions[protected]

TUidType iUidType

TUidType iUidType[protected]