nettools/conntest/Engine/SocketsEngine.cpp
changeset 17 e2b83f60b858
parent 2 4cefe9af9cf4
child 27 c6b52d057a05
equal deleted inserted replaced
16:9a0fcbb3925b 17:e2b83f60b858
   527         {
   527         {
   528         iRoamingState = EIdle;
   528         iRoamingState = EIdle;
   529         text.AppendFormat( _L8("Unexpected NewCarrierActive %i\n"), aNewAP.AccessPoint() );
   529         text.AppendFormat( _L8("Unexpected NewCarrierActive %i\n"), aNewAP.AccessPoint() );
   530         iMobility->NewCarrierRejected();
   530         iMobility->NewCarrierRejected();
   531         }
   531         }
       
   532     
       
   533     // Clean up and refresh HTTP client for the new carrier
       
   534     delete iHttpClient;
       
   535     iHttpClient = NULL;
       
   536     
       
   537     TRAPD( err1, iHttpClient = CHttpClient::NewL( iConsole ) );
       
   538     if ( err1 != KErrNone )
       
   539         {
       
   540         User::Panic( KPanicConnTest, EConnTestHttpClientInitializationFailed );
       
   541         iHttpClient = NULL;
       
   542         }
       
   543     
       
   544     TRAPD( err2, iHttpClient->SetHttpConnectionInfoL( ETrue, iConnection, iSocketServ ) );
       
   545     if ( err2 != KErrNone )
       
   546         {
       
   547         User::Panic( KPanicConnTest, EConnTestHttpClientInitializationFailed );
       
   548         }
       
   549     
   532     iConsole.PrintNotify( text );
   550     iConsole.PrintNotify( text );
   533     }
   551     }
   534 
   552 
   535 // ---------------------------------------------------------
   553 // ---------------------------------------------------------
   536 // CSocketsEngine::
   554 // CSocketsEngine::
  1473     PrintTextToConsole(infoBuf);
  1491     PrintTextToConsole(infoBuf);
  1474     CleanupStack::PopAndDestroy(buf);
  1492     CleanupStack::PopAndDestroy(buf);
  1475     CleanupStack::PopAndDestroy(&appSess);
  1493     CleanupStack::PopAndDestroy(&appSess);
  1476     }
  1494     }
  1477 
  1495 
  1478     // ---------------------------------------------------------
  1496 // ---------------------------------------------------------
  1479     // CSocketsEngine::SendHttpFrameworkRequestL()
  1497 // CSocketsEngine::SendHttpFrameworkRequestL()
  1480     // Send HTTP request
  1498 // Send HTTP request
  1481     // ---------------------------------------------------------
  1499 // ---------------------------------------------------------
  1482     //
  1500 //
  1483 void CSocketsEngine::SendHttpFrameworkRequestL( TBool aHasBody,
  1501 void CSocketsEngine::SendHttpFrameworkRequestL( TBool aHasBody,
  1484         TBool aDoPerformance,
  1502         TBool aDoPerformance,
  1485         TBool aIsSecure )
  1503         TBool aIsSecure )
  1486     {
  1504     {
  1487     iHttpClient->SetPerformance( aDoPerformance );
  1505     iHttpClient->SetPerformance( aDoPerformance );