datacommsserver/esockserver/test/providers/dummy/src/dummypr_extended_subconnprov.cpp
equal
deleted
inserted
replaced
65 using namespace NetStateMachine; |
65 using namespace NetStateMachine; |
66 using namespace PRActivities; |
66 using namespace PRActivities; |
67 using namespace Messages; |
67 using namespace Messages; |
68 using namespace MeshMachine; |
68 using namespace MeshMachine; |
69 |
69 |
70 //We reserve space for two preallocated activities that may start concurrently on the extended SCPR |
|
71 //node: destroy and data client stop. |
|
72 static const TUint KDefaultMaxPreallocatedActivityCount = 2; |
|
73 static const TUint KMaxPreallocatedActivitySize = sizeof(MeshMachine::CNodeRetryParallelActivity) + sizeof(MeshMachine::APreallocatedOriginators<4>); |
|
74 static const TUint KDummyExtendedSCPRPreallocatedActivityBufferSize = KDefaultMaxPreallocatedActivityCount * KMaxPreallocatedActivitySize; |
|
75 |
|
76 namespace DummyExtendedSCPRStates |
70 namespace DummyExtendedSCPRStates |
77 { |
71 { |
78 DEFINE_SMELEMENT(TAwaitingBinderResponse, NetStateMachine::MState, DummyExtendedSCPRStates::TContext) |
72 DEFINE_SMELEMENT(TAwaitingBinderResponse, NetStateMachine::MState, DummyExtendedSCPRStates::TContext) |
79 TBool TAwaitingBinderResponse::Accept() |
73 TBool TAwaitingBinderResponse::Accept() |
80 { |
74 { |
374 } |
368 } |
375 |
369 |
376 |
370 |
377 void CDummyExtendedSubConnectionProvider::ConstructL() |
371 void CDummyExtendedSubConnectionProvider::ConstructL() |
378 { |
372 { |
379 CCoreSubConnectionProvider::ConstructL(KDummyExtendedSCPRPreallocatedActivityBufferSize); |
373 CCoreSubConnectionProvider::ConstructL(); |
380 } |
374 } |
381 |
375 |
382 CDummyExtendedSubConnectionProvider::CDummyExtendedSubConnectionProvider(CSubConnectionProviderFactoryBase& aFactory) |
376 CDummyExtendedSubConnectionProvider::CDummyExtendedSubConnectionProvider(CSubConnectionProviderFactoryBase& aFactory) |
383 :CCoreSubConnectionProvider(aFactory, DummyExtendedSCPRStates::stateMap::Self()) |
377 :CCoreSubConnectionProvider(aFactory, DummyExtendedSCPRStates::stateMap::Self()) |
384 { |
378 { |