Den::CWorkerSession Class Reference

class Den::CWorkerSession : public CSession2

Inherits from

Public Member Functions
~CWorkerSession ()
void CleanupDeadWorker ( CommsFW::TWorkerId )
void CompleteDisconnect ()
IMPORT_C void ConstructL ( TProcessId )
void CountSubSessions ( CWorkerSession *, CWorkerSubSession *, TInt , TAny *)
CCommonDealer * Dealer ()
void Disconnect ()
IMPORT_C void Disconnect (const RMessage2 &)
IMPORT_C void DontCompleteCurrentRequest ()
IMPORT_C void GetOwnerInfo ( TProcessId &, TUidType &)
IMPORT_C TBool IsDisconnectListEmpty ()
TBool IsPlayerInDisconnectList ( CommsFW::TWorkerId )
IMPORT_C void LogSubSession ( CWorkerSession *, CWorkerSubSession *, TInt , TAny *)
IMPORT_C void PanicClient (const TDesC &, TInt )
CCommonPitBoss & PitBoss ()
IMPORT_C void ProcessSubSessions ( CommsFW::TWorkerId , TSubSessionProcessor , TAny *)
IMPORT_C void SessionCloseResp ( CommsFW::TWorkerId )
IMPORT_C void SetReturn ( TInt )
CSubSessionIx & SubSessions ()
const CSubSessionIx & SubSessions ()
const TSessionUniqueId & UniqueId ()
CommsFW::TWorkerId WorkerId ()
CCommonWorkerThread & WorkerThread ()
Protected Member Functions
CWorkerSession ( TUidType , TSessionUniqueId )
void AddPlayerToDisconnectList ( CommsFW::TWorkerId )
IMPORT_C void CloseAllSessionIpcExtensions ()
IMPORT_C void CloseSessionIpcExtension (const RSafeMessage &, const TApiExtIdentification &)
TIpcExtensionRoutingMessageFromSession * DoIsSessionIpcExtensionSupported ( TInt , TDes8 &)
void ForgetSubSession ( CWorkerSession *, CWorkerSubSession *, TInt , TAny *)
IMPORT_C void ForwardMessageL (const RMessage2 &, CWorkerSubSession *, CommsFW::TWorkerId )
IMPORT_C void ForwardMessageL (const RMessage2 &, CWorkerSubSession &)
IMPORT_C TIpcExtensionRoutingMessageFromSession * IsSessionIpcExtensionSupported ( TInt , TDes8 &)
const RMessage2 & Message ()
IMPORT_C void OpenSessionIpcExtensionL (const RSafeMessage &, const TApiExtIdentification &)
void OrphanSubSession ( CWorkerSession *, CWorkerSubSession *, TInt , TAny *)
IMPORT_C void OrphanSubSessions ()
IMPORT_C void ParkIfIndeterminateRequest (const RMessage2 &, TInt )
void RemovePlayerFromDisconnectList ( CommsFW::TWorkerId )
RSafeMessage & SafeMessage ()
RSafeMessage & SafeMessage (const RMessage2 &)
IMPORT_C void SendReceiveSessionIpcExtensionL (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
typedef void(* 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_C CWorkerSession ( TUidType aUid,
TSessionUniqueId aSessionUniqueId
) [protected]

Parameters

TUidType aUid
TSessionUniqueId aSessionUniqueId

~CWorkerSession()

IMPORT_C ~CWorkerSession ( )

Member Functions Documentation

AddPlayerToDisconnectList(CommsFW::TWorkerId)

void AddPlayerToDisconnectList ( CommsFW::TWorkerId aPlayerId ) [protected]

Parameters

CommsFW::TWorkerId aPlayerId

CleanupDeadWorker(CommsFW::TWorkerId)

void CleanupDeadWorker ( CommsFW::TWorkerId aPeerId )

Parameters

CommsFW::TWorkerId aPeerId

CloseAllSessionIpcExtensions()

IMPORT_C void CloseAllSessionIpcExtensions ( ) [protected]

CloseSessionIpcExtension(const RSafeMessage &, const TApiExtIdentification &)

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

Parameters

const RSafeMessage & aMessage
const TApiExtIdentification & aExtIdentification

CompleteDisconnect()

void CompleteDisconnect ( )

ConstructL(TProcessId)

IMPORT_C void ConstructL ( TProcessId aProcessId )

Parameters

TProcessId aProcessId

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

void CountSubSessions ( CWorkerSession * aSession,
CWorkerSubSession * aSubSession,
TInt aSubSessionHandle,
TAny * aArg
) [static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

Dealer()

CCommonDealer * Dealer ( ) const [inline]

Disconnect()

void Disconnect ( )

Disconnect(const RMessage2 &)

IMPORT_C void Disconnect ( const RMessage2 & aMessage ) [virtual]

Parameters

const RMessage2 & aMessage

DoIsSessionIpcExtensionSupported(TInt, TDes8 &)

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

Parameters

TInt
TDes8 &

DontCompleteCurrentRequest()

IMPORT_C void DontCompleteCurrentRequest ( )

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

void ForgetSubSession ( CWorkerSession * aSession,
CWorkerSubSession * aSubSession,
TInt aSubSessionHandle,
TAny * aArg
) [protected, static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

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

IMPORT_C void ForwardMessageL ( const RMessage2 & aMessage,
CWorkerSubSession * aSS,
CommsFW::TWorkerId aWorker
) [protected]

Parameters

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

ForwardMessageL(const RMessage2 &, CWorkerSubSession &)

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

Parameters

const RMessage2 & aMessage
CWorkerSubSession & aSubSess

GetOwnerInfo(TProcessId &, TUidType &)

IMPORT_C void GetOwnerInfo ( TProcessId & aProcId,
TUidType & aUidType
) const

Parameters

TProcessId & aProcId
TUidType & aUidType

IsDisconnectListEmpty()

IMPORT_C TBool IsDisconnectListEmpty ( ) const

IsPlayerInDisconnectList(CommsFW::TWorkerId)

TBool IsPlayerInDisconnectList ( CommsFW::TWorkerId aPlayerId ) const

Parameters

CommsFW::TWorkerId aPlayerId

IsSessionIpcExtensionSupported(TInt, TDes8 &)

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

Parameters

TInt aInterfaceId
TDes8 & aBuff

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

IMPORT_C void LogSubSession ( CWorkerSession * aSession,
CWorkerSubSession * aSubSession,
TInt aSubSessionHandle,
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 void OpenSessionIpcExtensionL ( const RSafeMessage & aMessage,
const TApiExtIdentification & aExtIdentification
) [protected]

Parameters

const RSafeMessage & aMessage
const TApiExtIdentification & aExtIdentification

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

void OrphanSubSession ( CWorkerSession * aSession,
CWorkerSubSession * aSubSession,
TInt aSubSessionHandle,
TAny * aArg
) [protected, static]

Parameters

CWorkerSession * aSession
CWorkerSubSession * aSubSession
TInt aSubSessionHandle
TAny * aArg

OrphanSubSessions()

IMPORT_C void OrphanSubSessions ( ) [protected]

PanicClient(const TDesC &, TInt)

IMPORT_C void PanicClient ( const TDesC & aCategory,
TInt aPanic
) [static]

Parameters

const TDesC & aCategory
TInt aPanic

ParkIfIndeterminateRequest(const RMessage2 &, TInt)

IMPORT_C void ParkIfIndeterminateRequest ( const RMessage2 & aMessage,
TInt aErrorIfConfigured
) [protected]

Parameters

const RMessage2 & aMessage
TInt aErrorIfConfigured

PitBoss()

CCommonPitBoss & PitBoss ( ) const [inline]

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

IMPORT_C void ProcessSubSessions ( CommsFW::TWorkerId aPeerId,
TSubSessionProcessor aSubSessionProcessor,
TAny * aArg
)

Parameters

CommsFW::TWorkerId aPeerId
TSubSessionProcessor aSubSessionProcessor
TAny * aArg

RemovePlayerFromDisconnectList(CommsFW::TWorkerId)

void RemovePlayerFromDisconnectList ( CommsFW::TWorkerId aPlayerId ) [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 void SendReceiveSessionIpcExtensionL ( const RSafeMessage & aMessage,
const TApiExtIdentification & aExtIdentification
) [protected]

Parameters

const RSafeMessage & aMessage
const TApiExtIdentification & aExtIdentification

SessionCloseResp(CommsFW::TWorkerId)

IMPORT_C void SessionCloseResp ( CommsFW::TWorkerId aPlayerId )

Parameters

CommsFW::TWorkerId aPlayerId

SetReturn(TInt)

IMPORT_C void SetReturn ( TInt aReturn )

Parameters

TInt aReturn

SubSessionFromHandle(TUint, TSubSessInfo)

IMPORT_C CWorkerSubSession * SubSessionFromHandle ( TUint aHandle,
TSubSessInfo aType
) 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]