datacommsserver/esockserver/test/TE_RConnectionSuite/src/TE_RConnectionStep.cpp
changeset 25 e53adc4c49de
parent 0 dfb7c4ff071f
equal deleted inserted replaced
22:592244873960 25:e53adc4c49de
  1730     
  1730     
  1731     return queryInfo().iIndex;
  1731     return queryInfo().iIndex;
  1732 }
  1732 }
  1733 
  1733 
  1734 
  1734 
       
  1735 TBool TE_RConnectionStep::WaitForRequestOrTimeOutL(TRequestStatus& aStatus, TInt aTimeOut)
       
  1736     {
       
  1737     RTimer timer;
       
  1738     User::LeaveIfError(timer.CreateLocal());
       
  1739 
       
  1740     TRequestStatus timerStatus;
       
  1741     timer.After(timerStatus, aTimeOut);
       
  1742     User::WaitForRequest(aStatus, timerStatus);
       
  1743     TBool requestCompleted = EFalse;
       
  1744     
       
  1745     if (timerStatus == KRequestPending)
       
  1746         {
       
  1747         timer.Cancel();
       
  1748         User::WaitForRequest(timerStatus);
       
  1749         requestCompleted = ETrue;
       
  1750         }
       
  1751     
       
  1752     timer.Close();
       
  1753     return requestCompleted;
       
  1754     }
       
  1755 
  1735 
  1756 
  1736 /*
  1757 /*
  1737  * Now the stuff for the peculiar tests that need to use QoS
  1758  * Now the stuff for the peculiar tests that need to use QoS
  1738  */
  1759  */
  1739 
  1760