CCountServServer Class Reference

List of all members.

Public Member Functions

CSession2 * NewSessionL (const TVersion &aVersion, const RMessage2 &aMessage) const

Static Public Member Functions

static TInt ThreadFunction (TAny *aStarted)
static void PanicServer (TCountServPanic aPanic)

Protected Member Functions

 CCountServServer (CActive::TPriority aActiveObjectPriority)

Detailed Description

Our server class - an active object - and therefore derived ultimately from CActive. It accepts requests from client threads and forwards them to the client session to be dealt with. It also handles the creation of the server-side client session.

Definition at line 58 of file SimpleServer.h.


Constructor & Destructor Documentation

CCountServServer::CCountServServer ( CActive::TPriority  aActiveObjectPriority  )  [protected]

Constructor takes the server priority value.

The server is an active object, and the priority value is the priority of this active object.

It passes the priority value to the base class in the Ctor list. By default, the session is not sharable, which is what we want here so no second parameter is passed to the CServer2 constructor.

Definition at line 55 of file SimpleServer.cpp.


Member Function Documentation

CSession2 * CCountServServer::NewSessionL ( const TVersion &  aVersion,
const RMessage2 &  aMessage 
) const

Creates a new session with the server.

Definition at line 64 of file SimpleServer.cpp.

GLDEF_C TInt CCountServServer::ThreadFunction ( TAny *  aStarted  )  [static]
Parameters:
aStarted aStarted

Definition at line 286 of file SimpleServer.cpp.

void CCountServServer::PanicServer ( TCountServPanic  aPanic  )  [static]

A utility function to panic the server.

Definition at line 85 of file SimpleServer.cpp.


Generated by  doxygen 1.6.2