Public Member Functions | |
void | CreateL () |
void | ServiceL (const RMessage2 &aMessage) |
void | NewCounterL (const RMessage2 &aMessage) |
void | CloseSession () |
void | NumResourcesL (const RMessage2 &aMessage) |
CSecureServerSubSession * | CounterFromHandle (const RMessage2 &aMessage, TInt aHandle) |
void | DeleteCounter (TInt aHandle) |
TInt | CountResources () |
void | PanicClient (const RMessage2 &aMessage, TInt aPanic) const |
CSecureServerSession () | |
Static Public Member Functions | |
static CSecureServerSession * | NewL () |
The class that represents a session with the server. When a client connects to the server, a session object is created by the server. The class provides functions that respond to client messages. A session can own any number of subsession objects.
Definition at line 233 of file secureserver.h.
CSecureServerSession::CSecureServerSession | ( | ) |
Constructor of the CSecureServerSession class.
Definition at line 41 of file secureserverccountsession.cpp.
void CSecureServerSession::CreateL | ( | ) |
Creates the object index and object container for the session.
Definition at line 48 of file secureserverccountsession.cpp.
void CSecureServerSession::ServiceL | ( | const RMessage2 & | aMessage | ) |
Handles the servicing of a client request that has been passed to the server. This function dispatches requests to the appropriate handler. Some messages are handled by the session itself, and are implemented as CSecureServerSession member functions. Other messages are handled by the subsession, and are implemented as CSecureServerSubSession member functions. Note that the server calls this function after a client request has passed the security checks.
aMessage | The message containing the details of the client request. |
Definition at line 90 of file secureserverccountsession.cpp.
void CSecureServerSession::NewCounterL | ( | const RMessage2 & | aMessage | ) |
Creates a new sub session for the current session.
aMessage | The message containing the details of the client request. |
Definition at line 162 of file secureserverccountsession.cpp.
void CSecureServerSession::CloseSession | ( | ) |
Closes the session. This function deletes the object index and object container.
Definition at line 58 of file secureserverccountsession.cpp.
void CSecureServerSession::NumResourcesL | ( | const RMessage2 & | aMessage | ) |
Returns the resource count to the client by writing the resource count value into the client message.
aMessage | The message containing the details of the client request. |
Definition at line 205 of file secureserverccountsession.cpp.
CSecureServerSubSession * CSecureServerSession::CounterFromHandle | ( | const RMessage2 & | aMessage, | |
TInt | aHandle | |||
) |
Returns the appropriate CCountSubSession object given a client's sub session handle.
aMessage | The request message. | |
aHandle | Client's sub session handle. |
Definition at line 72 of file secureserverccountsession.cpp.
void CSecureServerSession::DeleteCounter | ( | TInt | aHandle | ) |
Deletes the sub session object.
aHandle | The handle to the sub session object. |
Definition at line 185 of file secureserverccountsession.cpp.
TInt CSecureServerSession::CountResources | ( | ) |
Gets the number of resources held by the session.
Definition at line 196 of file secureserverccountsession.cpp.
void CSecureServerSession::PanicClient | ( | const RMessage2 & | aMessage, | |
TInt | aPanic | |||
) | const |
Panics the client.
aMessage | The message containing the details of the client request. | |
aPanic | The reason for the panic. |
Definition at line 216 of file secureserverccountsession.cpp.