datacommsserver/esockserver/core_states/ss_coreprstates.cpp
changeset 5 68ef71f0cd72
parent 4 928ed51ddc43
child 9 77effd21b2c9
child 22 592244873960
equal deleted inserted replaced
4:928ed51ddc43 5:68ef71f0cd72
  2090 	}
  2090 	}
  2091 
  2091 
  2092 EXPORT_DEFINE_SMELEMENT(TCancelDataClientStart, NetStateMachine::MStateTransition, PRStates::TContext)
  2092 EXPORT_DEFINE_SMELEMENT(TCancelDataClientStart, NetStateMachine::MStateTransition, PRStates::TContext)
  2093 EXPORT_C void TCancelDataClientStart::DoL()
  2093 EXPORT_C void TCancelDataClientStart::DoL()
  2094 	{
  2094 	{
  2095 	// Cancel must come from the same activity that sent TStart
  2095 	CNodeActivityBase* dcstart = iContext.Node().FindActivityById(ECFActivityStartDataClient);
  2096 	// This transition will handle Data Clients started by ECFActivityStart
  2096 	if (dcstart)
  2097 	// it will not handle those started by ECFActivityStartDataClient
  2097 		{
  2098 	RClientInterface::OpenPostMessageClose(TNodeCtxId(ECFActivityStart, iContext.NodeId()), iContext.NodeId(), TEBase::TCancel().CRef());
  2098 		dcstart->Cancel(iContext);
       
  2099 		}
  2099 	}
  2100 	}
  2100 
  2101 
  2101 EXPORT_DEFINE_SMELEMENT(TProcessDataClientStop, NetStateMachine::MStateTransition, PRStates::TContext)
  2102 EXPORT_DEFINE_SMELEMENT(TProcessDataClientStop, NetStateMachine::MStateTransition, PRStates::TContext)
  2102 EXPORT_C void TProcessDataClientStop::DoL()
  2103 EXPORT_C void TProcessDataClientStop::DoL()
  2103 	{
  2104 	{