examples/Base/IPC/secureserver/secureserver.h File Reference

Go to the source code of this file.

Classes

class  CSecureServer
class  CSecureServerSession
class  CSecureServerSubSession

Enumerations

enum  TSecureServerPanic {
  EBadRequest = 1, EDescriptorNonNumeric, EMainSchedulerError, EServerCreateServer,
  EServerStartServer, ECreateTrapCleanup, EBadSubsessionHandle, ESecureServerSecurityPolicy
}

Variables

const TUint KDefaultHeapSize = 0x10000
const TInt KSecureServerRangeCount = 5
const TInt KSecureServerRanges [KSecureServerRangeCount]
const
CPolicyServer::TPolicyElement 
KSecureServerElements []
const TUint8 KSecureServerElementsIndex [KSecureServerRangeCount]
const
CPolicyServer::TPolicy 
KSecureServerPolicy


Detailed Description

Definition in file secureserver.h.


Enumeration Type Documentation

enum TSecureServerPanic

A set of panic numbers used when the example raises panics in response to programming errors. All panics raised by the example have the category SecureServer.

See also:
KTxtServer
Enumerator:
EBadRequest  An undefined op code.
EDescriptorNonNumeric  A descriptor containing non-numeric characters.
EMainSchedulerError  The Active Scheduler can not be instantiated.
EServerCreateServer  The server can not be created.
EServerStartServer  The server can not be added to the active scheduler to receive requests.
ECreateTrapCleanup  The cleanup stack can not be created.
EBadSubsessionHandle  The object index of the sub session returns an error.
ESecureServerSecurityPolicy  A custom security policy violation.

Definition at line 43 of file secureserver.h.


Variable Documentation

const TUint KDefaultHeapSize = 0x10000

The size of the heap to be allocated for the thread that runs the server. The constant is passed to the StartThread() function defined in secureclientandserver.h and implemented in secureserver.cpp.

See also:
RThread::Create()

Definition at line 36 of file secureserver.h.

const TInt KSecureServerRangeCount = 5

The server specifies 5 ranges of security policy. Each range undergoes a different security check.

See also:
CpolicyServer::TPolicy::iRangeCount

Definition at line 83 of file secureserver.h.

const TInt KSecureServerRanges[KSecureServerRangeCount]

Initial value:

        {
        
        0,
        
        5,
        
        6,
        
        11,
        
        13
        }
Ordered ranges of request numbers.
See also:
CpolicyServer::TPolicy::iRanges

Definition at line 89 of file secureserver.h.

const CPolicyServer::TPolicyElement KSecureServerElements[]

Initial value:

        {
        
        _INIT_SECURITY_POLICY_S0(0x70fffff0),
        
        {_INIT_SECURITY_POLICY_C1(ECapabilityReadDeviceData | ECapabilityWriteDeviceData), CPolicyServer::EFailClient}
        }
An array containing the unique set of policies used in this example.
See also:
CpolicyServer::TPolicy::iElements

Definition at line 117 of file secureserver.h.

const TUint8 KSecureServerElementsIndex[KSecureServerRangeCount]

Initial value:

                {
                
                CPolicyServer::EAlwaysPass,
                
                0,
                
                CPolicyServer::ECustomCheck,
                
                1,
                
                CPolicyServer::ENotSupported
                }
An array of TUint8 values that specify the action to take for each range in KSecureServerRanges array.
See also:
CpolicyServer::TPolicy::iElementsIndex

Definition at line 133 of file secureserver.h.

const CPolicyServer::TPolicy KSecureServerPolicy

Initial value:

The security policy of the server. This is passed to the constructor of the policy server. In this example, this is the constructor of the CSecureServer class.
See also:
CSecureServer

Definition at line 167 of file secureserver.h.


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