Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:21, 26 July 2007.

如何在RHTTPSession上使用RConnection初始化的连接

From Forum Nokia Wiki

  • 开发伙伴平台:

60系列开发平台 2.0


  • 说明:

下列代码演示了如何在RHTTPSession对象上增加一个由RConnection生成的连接:

RConnection connection;
RSocketServ socketServ;
RHTTPSession session;
 
User::LeaveIfError(socketServ.Connect());
User::LeaveIfError(connection.Open( socketServ ));
 
User::LeaveIfError(connection.Start())
 
session.OpenL();
 
RHTTPConnectionInfo connInfo = session.ConnectionInfo();
RStringPool pool = session.StringPool();
 
connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketServ,
RHTTPSession::GetTable()), THTTPHdrVal(socketServ.Handle()));
connInfo.SetPropertyL(pool.StringF(HTTP::EHttpSocketConnection,
RHTTPSession::GetTable()), HTTPHdrVal(connection.SubSessionHandle()));
 
session.OpenTransactionL(...);
Related Discussions
Thread Thread Starter Forum Replies Last Post
Nokia论坛技术资料Symbian解决方案-中文版 hoolee Symbian 376 2008-07-04 08:25
关于接入点的问题 suisuiaini Symbian 4 2007-11-13 05:42
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX