RCountServSession Class Reference

List of all members.

Public Member Functions

 RCountServSession ()
TInt Connect ()
TVersion Version () const
TInt UnsupportedRequest ()
TInt SetFromString (const TDesC &aString)
void Increase ()
void Decrease ()
void IncreaseBy (TInt anInt)
void DecreaseBy (TInt anInt)
void Reset ()
TInt CounterValue ()
void BadRequest ()
void Close ()


Detailed Description

Definition at line 44 of file SimpleClient.h.


Member Function Documentation

TInt RCountServSession::Connect (  ) 

Connects to the server using 4 message slots.

In this example, the server is implemented as a separate thread. The function starts that thread before attempting to create a session with the server.

The version information specifies the earliest version of the server that we can talk to.

Definition at line 49 of file SimpleClient.cpp.

TVersion RCountServSession::Version ( void   )  const

Returns the earliest version number of the server that we can tal to.

Definition at line 61 of file SimpleClient.cpp.

TInt RCountServSession::UnsupportedRequest (  ) 

A server request to stop the server.

This is a request that is NOT implemented by the server; it is here to show the handling of non-implemented requests.

Definition at line 152 of file SimpleClient.cpp.

TInt RCountServSession::SetFromString ( const TDesC &  aString  ) 

A server request to set the counter value to the value defined in the string.

Definition at line 71 of file SimpleClient.cpp.

void RCountServSession::Increase (  ) 

A server request to increase the counter value by the default value (i.e. 1)

Definition at line 81 of file SimpleClient.cpp.

void RCountServSession::Decrease (  ) 

A server request to decrease the counter value by the default value (i.e. 1).

Definition at line 101 of file SimpleClient.cpp.

void RCountServSession::IncreaseBy ( TInt  anInt  ) 

A server request to increase the counter value by the specified integer value.

Definition at line 91 of file SimpleClient.cpp.

void RCountServSession::DecreaseBy ( TInt  anInt  ) 

A server request to decrease the counter value by the specified integer value.

Definition at line 111 of file SimpleClient.cpp.

void RCountServSession::Reset (  ) 

A server request to reset the counter value to 0.

Definition at line 120 of file SimpleClient.cpp.

TInt RCountServSession::CounterValue (  ) 

A server request to get the curent value of the counter.

We pass a TPckgBuf across to the server.

Definition at line 131 of file SimpleClient.cpp.

void RCountServSession::BadRequest (  ) 

A request that the server knows nothing about.

Definition at line 160 of file SimpleClient.cpp.

void RCountServSession::Close (  ) 

Closing the server and tidying up.

Definition at line 170 of file SimpleClient.cpp.


Generated on Thu Jan 21 10:33:08 2010 for TB10.1 Example Applications by  doxygen 1.5.3