applayerprotocols/httpservice/src/chttpservice.cpp
branchRCL_3
changeset 9 2611c08ee28e
parent 7 337070b4fa18
child 37 5f1cd966e0d9
equal deleted inserted replaced
8:fa2fd8b2d6cc 9:2611c08ee28e
    15 
    15 
    16 #include "chttpservice.h"
    16 #include "chttpservice.h"
    17 #include "httpclientutils.h"
    17 #include "httpclientutils.h"
    18 #include "chttpclientauthentication.h" 
    18 #include "chttpclientauthentication.h" 
    19 #include "mhttpserviceauthentication.h" 
    19 #include "mhttpserviceauthentication.h" 
       
    20 #include "chttpnetworkconnectioninfo.h"
    20 const TInt KMaxNoOfConnections = 6;
    21 const TInt KMaxNoOfConnections = 6;
    21 const TInt KMaxTransToPipeline = 5;
    22 const TInt KMaxTransToPipeline = 5;
    22 
    23 
    23 /**
    24 /**
    24  * The default 2-phase constructor to create a CHttpService instance
    25  * The default 2-phase constructor to create a CHttpService instance
   245     iHttpServiceStruct->iSessionHeaders = iHttpServiceStruct->iHttpSession.RequestSessionHeadersL();
   246     iHttpServiceStruct->iSessionHeaders = iHttpServiceStruct->iHttpSession.RequestSessionHeadersL();
   246     SetMaxConnections(KMaxNoOfConnections);
   247     SetMaxConnections(KMaxNoOfConnections);
   247     SetMaxTransactionsToPipeline(KMaxTransToPipeline);    
   248     SetMaxTransactionsToPipeline(KMaxTransToPipeline);    
   248 	}
   249 	}
   249 	
   250 	
       
   251 EXPORT_C CHttpNetworkConnection* CHttpService::HttpNetworkConnection()
       
   252     {
       
   253     CHttpNetworkConnection *httpNetworkConn = CHttpNetworkConnection::New();
       
   254     httpNetworkConn->SetHttpService(this);
       
   255     return httpNetworkConn;
       
   256     }