datacommsserver/esockserver/ssock/ss_connstates.cpp
branchRCL_3
changeset 15 51722b10598b
parent 14 4ccf8e394726
child 18 9644881fedd0
equal deleted inserted replaced
14:4ccf8e394726 15:51722b10598b
   635     TCFMessage::TStateChange* progressMsg = message_cast<TCFMessage::TStateChange>(&iContext.iMessage);
   635     TCFMessage::TStateChange* progressMsg = message_cast<TCFMessage::TStateChange>(&iContext.iMessage);
   636     if (progressMsg)
   636     if (progressMsg)
   637         {
   637         {
   638         TStateChange& progress = progressMsg->iStateChange;
   638         TStateChange& progress = progressMsg->iStateChange;
   639         
   639         
   640         if (iContext.iSender != iContext.Node().Id())
   640 		// Check whether KDataTransferUnblocked is received and if yes, then traslate it to KConnectionUp (== KLinkLayerOpen)
       
   641 		// the log only sees the translated version, this goes into the queue, so it alright I suppose.
       
   642 		if (progress.iStage == KDataTransferUnblocked )
       
   643 			{
       
   644 			progress.iStage = KConnectionUp;    // KLinkLayerOpen
       
   645 			}
       
   646 		if (progress.iError == KErrForceDisconnected)
       
   647 			{
       
   648 			progress.iError = KErrDisconnected;
       
   649 			}
       
   650         
       
   651 		// CConnection trusts that locally generated progresses are to be trusted,
       
   652 		// but some of the legacy progresses coming from the stack need some filtering.
       
   653 		// Here's the filtering.
       
   654 		if (iContext.iSender != iContext.Node().Id())
   641             {
   655             {
   642             //CConnection trusts that locally generated progresses are to be trusted,
       
   643             //but some of the legacy progresses coming from the stack need some filtering.
       
   644             //Here's the filtering.
       
   645         
       
   646             // Check whether KDataTransferUnblocked is received and if yes, then traslate it to KConnectionUp (== KLinkLayerOpen)
       
   647             // the log only sees the translated version, this goes into the queue, so it alright I suppose.
       
   648             if (progress.iStage == KDataTransferUnblocked )
       
   649                 {
       
   650                 progress.iStage = KConnectionUp;    // KLinkLayerOpen
       
   651                 }
       
   652             if (progress.iError == KErrForceDisconnected)
       
   653                 {
       
   654                 progress.iError = KErrDisconnected;
       
   655                 }
       
   656             
       
   657             if (progress.iStage == KConnectionUninitialised)
   656             if (progress.iStage == KConnectionUninitialised)
   658                 {
   657                 {
   659                 //KConnectionUninitialised has been deprecated in the stack and it will be ignored
   658                 //KConnectionUninitialised has been deprecated in the stack and it will be ignored
   660                 //when reported by it. It is still valid towards the application. Here it is being reported by the stack.
   659                 //when reported by it. It is still valid towards the application. Here it is being reported by the stack.
   661                 //The original KConnectionUninitialised denoted CAgentReference destruction and as such speculated too
   660                 //The original KConnectionUninitialised denoted CAgentReference destruction and as such speculated too