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) |
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.
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.
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] |
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.