linklayerprotocols/pppnif/SPPP/pppscpr.cpp
branchRCL_3
changeset 19 3652a10b304a
parent 0 af10295192d8
equal deleted inserted replaced
17:d566d76acea1 19:3652a10b304a
    35 
    35 
    36 #ifdef __CFLOG_ACTIVE
    36 #ifdef __CFLOG_ACTIVE
    37 #define KPppSCprTag KESockSubConnectionTag
    37 #define KPppSCprTag KESockSubConnectionTag
    38 _LIT8(KPppSCprSubTag, "pppscpr");
    38 _LIT8(KPppSCprSubTag, "pppscpr");
    39 #endif
    39 #endif
    40 
       
    41 //We reserve space for two preallocated activities that may start concurrently on the SCPR
       
    42 //node: destroy and data client stop.
       
    43 static const TUint KDefaultMaxPreallocatedActivityCount = 2;
       
    44 static const TUint KMaxPreallocatedActivitySize = sizeof(MeshMachine::CNodeRetryParallelActivity) + sizeof(MeshMachine::APreallocatedOriginators<4>);
       
    45 static const TUint KPPPSCPRPreallocatedActivityBufferSize = KDefaultMaxPreallocatedActivityCount * KMaxPreallocatedActivitySize;
       
    46 
    40 
    47 namespace PppSCprStates
    41 namespace PppSCprStates
    48 {
    42 {
    49 
    43 
    50 
    44 
    99 // Basic constructor passing in an alternative activity map for the AgentSCpr
    93 // Basic constructor passing in an alternative activity map for the AgentSCpr
   100 CPppSubConnectionProvider* CPppSubConnectionProvider::NewL(ESock::CSubConnectionProviderFactoryBase& aFactory)
    94 CPppSubConnectionProvider* CPppSubConnectionProvider::NewL(ESock::CSubConnectionProviderFactoryBase& aFactory)
   101     {
    95     {
   102     CPppSubConnectionProvider* self = new (ELeave) CPppSubConnectionProvider(aFactory, PppSCprActivities::pppSCprActivities::Self());
    96     CPppSubConnectionProvider* self = new (ELeave) CPppSubConnectionProvider(aFactory, PppSCprActivities::pppSCprActivities::Self());
   103     CleanupStack::PushL(self);
    97     CleanupStack::PushL(self);
   104     self->ConstructL(KPPPSCPRPreallocatedActivityBufferSize);
    98     self->ConstructL();
   105     CleanupStack::Pop();
    99     CleanupStack::Pop();
   106     return self;
   100     return self;
   107     }
   101     }
   108 
   102 
   109 
   103