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 CSecureServerSubSession * | NewL (CSecureServerSession *aSession) |
Protected Attributes | |
CSecureServerSession * | iSession |
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 256 of file secureserver.h.
CSecureServerSubSession::CSecureServerSubSession | ( | CSecureServerSession * | aSession | ) |
Constructor of the CSecureServerSubSession class.
aSession | The session to which this subsession is to be attached. |
Definition at line 30 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::SetFromStringL | ( | const RMessage2 & | aMessage | ) |
Sets the counter value from a string.
aMessage | Message that encapsulates the string sent by the client. |
Definition at line 38 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::Increase | ( | ) |
Increases the counter value by one.
Definition at line 77 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::IncreaseBy | ( | const RMessage2 & | aMessage | ) |
Increases the counter value by the value passed in the message.
aMessage | The message containing the value sent by the client. |
Definition at line 87 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::Decrease | ( | ) |
Decreases the counter value by one.
Definition at line 95 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::DecreaseBy | ( | const RMessage2 & | aMessage | ) |
Decreases the counter value by the value passed in the message.
aMessage | The message containing the value sent by the client. |
Definition at line 105 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::Reset | ( | ) |
Resets the counter to 0.
Definition at line 114 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::CounterValueL | ( | const RMessage2 & | aMessage | ) |
Sends the counter value to the client.
aMessage | The message that encapsulates the counter value sent to the client by the server. |
Definition at line 123 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 142 of file secureserverccountsubsession.cpp.
void CSecureServerSubSession::SetCounterValueFromFileL | ( | ) |
Gets the counter value from the file counter.dat.
Definition at line 175 of file secureserverccountsubsession.cpp.
CSecureServerSession* CSecureServerSubSession::iSession [protected] |
The parent session.
Definition at line 276 of file secureserver.h.