CCountServSession Class Reference

Inherits CSession2.

List of all members.

Public Member Functions

 CCountServSession ()
void ServiceL (const RMessage2 &aMessage)
void DispatchMessageL (const RMessage2 &aMessage)
void SetFromStringL (const RMessage2 &aMessage)
void Increase ()
void Decrease ()
void IncreaseBy (const RMessage2 &aMessage)
void DecreaseBy (const RMessage2 &aMessage)
void CounterValueL (const RMessage2 &aMessage)
void Reset ()

Protected Member Functions

void PanicClient (const RMessage2 &aMessage, TInt aPanic) const

Detailed Description

This class represents a session with the server. Functions are provided to respond appropriately to client messages.

Definition at line 68 of file SimpleServer.h.


Constructor & Destructor Documentation

CCountServSession::CCountServSession (  ) 

Constructor

Definition at line 85 of file SimpleServer.cpp.


Member Function Documentation

void CCountServSession::ServiceL ( const RMessage2 &  aMessage  ) 

Services a client request.

Definition at line 92 of file SimpleServer.cpp.

void CCountServSession::DispatchMessageL ( const RMessage2 &  aMessage  ) 

Called by ServiceL()

It tests the function code and then delegates to the appropriate function.

Definition at line 104 of file SimpleServer.cpp.

void CCountServSession::SetFromStringL ( const RMessage2 &  aMessage  ) 

Initialize the counter with the numeric equivalent of the descriptor contents This function is here to demonstrate reading from the client address space. Note that in this example, the client and the server are part of the same process,

Definition at line 149 of file SimpleServer.cpp.

void CCountServSession::Increase (  ) 

Increases the session counter by default (1)

Definition at line 203 of file SimpleServer.cpp.

void CCountServSession::Decrease (  ) 

Decreases the session counter by default (1)

Definition at line 220 of file SimpleServer.cpp.

void CCountServSession::IncreaseBy ( const RMessage2 &  aMessage  ) 

Increases the session counter by an integer.

Definition at line 212 of file SimpleServer.cpp.

void CCountServSession::DecreaseBy ( const RMessage2 &  aMessage  ) 

Decreases the session counter by an integer.

Definition at line 229 of file SimpleServer.cpp.

void CCountServSession::CounterValueL ( const RMessage2 &  aMessage  ) 

Writes the counter value to a descriptor in the client address space. This function demonstrates writing to the client.

Definition at line 248 of file SimpleServer.cpp.

void CCountServSession::Reset (  ) 

Resets the session counter.

Definition at line 238 of file SimpleServer.cpp.

void CCountServSession::PanicClient ( const RMessage2 &  aMessage,
TInt  aPanic 
) const [protected]

Panics the client

Definition at line 258 of file SimpleServer.cpp.


Generated by  doxygen 1.6.2