datacommsserver/esockserver/ssock/ss_connLegacy.cpp
changeset 4 928ed51ddc43
parent 0 dfb7c4ff071f
child 12 8b5d60ce1e94
equal deleted inserted replaced
3:b6139031a239 4:928ed51ddc43
   351 	CompleteAllInterfaceNotificationL(KErrNone);
   351 	CompleteAllInterfaceNotificationL(KErrNone);
   352 	}
   352 	}
   353 
   353 
   354 void AConnectionLegacy::CompleteAllInterfaceNotificationL(TInt aError)
   354 void AConnectionLegacy::CompleteAllInterfaceNotificationL(TInt aError)
   355 	{
   355 	{
   356 	LOG(ESockLog::Printf(KESockConnectionTag, _L8("AConnectionLegacy [this=%08x] CompleteAllInterfaceNotificationL message (%08X) with %d"), &iConnection, iAllInterfaceNotificationMessage.Handle(), aError));
   356 	if (!iAllInterfaceNotificationMessage.IsNull())
   357 
       
   358 	if(!iAllInterfaceNotificationMessage.IsNull())
       
   359 		{
   357 		{
   360 		if(aError == KErrNone)
   358 		if(aError == KErrNone)
   361 			{
   359 			{
   362 			if(!iNotificationQueue.IsEmpty())
   360 			if (!iNotificationQueue.IsEmpty())
   363 				{
   361 				{
   364 				TInterfaceNotification notification;
   362 				TInterfaceNotification notification;
   365 				iNotificationQueue.Deque(notification);
   363 				iNotificationQueue.Deque(notification);
   366 
   364 
   367 				TInterfaceNotificationBuf buf(notification);
   365 				TInterfaceNotificationBuf buf(notification);
   368 
   366 
   369 				// Write the buffer to the client
   367 				// Write the buffer to the client
   370 				iAllInterfaceNotificationMessage.WriteL(0, buf);
   368 				iAllInterfaceNotificationMessage.WriteL(0, buf);
       
   369 			    LOG(ESockLog::Printf(KESockConnectionTag, _L8("AConnectionLegacy [this=%08x] CompleteAllInterfaceNotificationL, RMessage2::Complete (%08x) with 0"), &iConnection, iAllInterfaceNotificationMessage.Handle()));
   371 				iAllInterfaceNotificationMessage.Complete(KErrNone);
   370 				iAllInterfaceNotificationMessage.Complete(KErrNone);
   372 				iAllInterfaceNotificationMessage = RMessage2();
   371 				iAllInterfaceNotificationMessage = RMessage2();
   373 				}
   372 				}
   374 			}
   373 			}
   375 		else
   374 		else
   376 			{
   375 			{
       
   376             LOG(ESockLog::Printf(KESockConnectionTag, _L8("AConnectionLegacy [this=%08x] CompleteAllInterfaceNotificationL, RMessage2::Complete (%08x) with %d"), &iConnection, iAllInterfaceNotificationMessage.Handle(), aError));
   377 			iAllInterfaceNotificationMessage.Complete(aError);
   377 			iAllInterfaceNotificationMessage.Complete(aError);
   378 			iAllInterfaceNotificationMessage = RMessage2();
   378 			iAllInterfaceNotificationMessage = RMessage2();
   379 			}
   379 			}
   380 		}
   380 		}
   381 	}
   381 	}