CSecureServerSubSession Class Reference

List of all members.

Public Member Functions

 CSecureServerSubSession (CSecureServerSession *aSession)
void ConstructL (CSecureServerSession *aSession)
void SetFromStringL (const RMessage2 &aMessage)
void Increase ()
void IncreaseBy (const RMessage2 &aMessage)
void Decrease ()
void DecreaseBy (const RMessage2 &aMessage)
void Reset ()
void CounterValueL (const RMessage2 &aMessage)
void SaveCounterValueL ()
void SetCounterValueFromFileL ()

Static Public Member Functions

static CSecureServerSubSessionNewL (CSecureServerSession *aSession)

Protected Attributes

CSecureServerSessioniSession

Detailed Description

The class that represents a subsession. When a client wants more than one connection to a server at the same time, it can use a subsession. A subsession is more efficient than a session, but an application needs to provide more code. A subsession object is created by a session. A session can own any number of subsession objects. The class provides functions that respond to client messages.

Definition at line 269 of file secureserver.h.


Constructor & Destructor Documentation

CSecureServerSubSession::CSecureServerSubSession ( CSecureServerSession aSession  ) 

Constructor of the CSecureServerSubSession class.

Parameters:
aSession The session to which this subsession is to be attached.
See also:
CSecureServerSession

Definition at line 43 of file secureserverccountsubsession.cpp.


Member Function Documentation

void CSecureServerSubSession::SetFromStringL ( const RMessage2 &  aMessage  ) 

Sets the counter value from a string.

Parameters:
aMessage Message that encapsulates the string sent by the client.

Definition at line 51 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::Increase (  ) 

Increases the counter value by one.

Definition at line 90 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::IncreaseBy ( const RMessage2 &  aMessage  ) 

Increases the counter value by the value passed in the message.

Parameters:
aMessage The message containing the value sent by the client.
See also:
RSecureSubSession::Increase()

Definition at line 100 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::Decrease (  ) 

Decreases the counter value by one.

Definition at line 108 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::DecreaseBy ( const RMessage2 &  aMessage  ) 

Decreases the counter value by the value passed in the message.

Parameters:
aMessage The message containing the value sent by the client.
See also:
RSecureSubSession::Decrease()

Definition at line 118 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::Reset (  ) 

Resets the counter to 0.

See also:
RSecureSubSession::Reset()

Definition at line 127 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::CounterValueL ( const RMessage2 &  aMessage  ) 

Sends the counter value to the client.

Parameters:
aMessage The message that encapsulates the counter value sent to the client by the server.

Definition at line 136 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::SaveCounterValueL (  ) 

Saves the counter value in the file counter.dat.

The example creates the file in the private directory of the executable process. The private directory is created on a device’s system drive. This is the drive that a device marks as the standard place for application data.

In this example, this is the location: C:.dat

0x70fffff0 is the Secure ID (SID) of the process; this is defined in secureclient.mmp.

C: is the system drive. When built and run on the emulator, see …\...:\...

Definition at line 155 of file secureserverccountsubsession.cpp.

void CSecureServerSubSession::SetCounterValueFromFileL (  ) 

Gets the counter value from the file counter.dat.

See also:
CSecureServerSubSession::SaveCounterValueL()

Definition at line 188 of file secureserverccountsubsession.cpp.


Member Data Documentation

The parent session.

Definition at line 289 of file secureserver.h.


Generated by  doxygen 1.6.2