CCountServSession Class Reference

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 83 of file SimpleServer.h.

Constructor & Destructor Documentation

CCountServSession::CCountServSession (  ) 


Definition at line 100 of file SimpleServer.cpp.

Member Function Documentation

void CCountServSession::ServiceL ( const RMessage2 &  aMessage  ) 

Services a client request.

Definition at line 107 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 119 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 164 of file SimpleServer.cpp.

void CCountServSession::Increase (  ) 

Increases the session counter by default (1)

Definition at line 218 of file SimpleServer.cpp.

void CCountServSession::Decrease (  ) 

Decreases the session counter by default (1)

Definition at line 235 of file SimpleServer.cpp.

void CCountServSession::IncreaseBy ( const RMessage2 &  aMessage  ) 

Increases the session counter by an integer.

Definition at line 227 of file SimpleServer.cpp.

void CCountServSession::DecreaseBy ( const RMessage2 &  aMessage  ) 

Decreases the session counter by an integer.

Definition at line 244 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 263 of file SimpleServer.cpp.

void CCountServSession::Reset (  ) 

Resets the session counter.

Definition at line 253 of file SimpleServer.cpp.

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

Panics the client

Definition at line 273 of file SimpleServer.cpp.

Generated by  doxygen 1.6.2