首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Symbian >

请问关于HTTP断点续传

2012-03-11 
请教关于HTTP断点续传请问一下,HTTP上传下载断点续传机制如何实现?我的程序在模拟器上下载文件正常,但在真

请教关于HTTP断点续传
请问一下,HTTP上传下载断点续传机制如何实现?   我的程序在模拟器上下载文件正常,但在真机上的时候经常出现下载到某个文件的一部分的时候就停止的情况,请问这种情况一般怎么样处理?另外想问一下有没有高手知道MHFRunError与THTTPEvent::EFailed的区别?   谢谢

[解决办法]
HTTP上传下载断点续传机制不复杂。
“真机上的时候经常出现下载到某个文件的一部分的时候就停止的情况”,估计是不是真机在一定时间后自动关闭网络连接。仅供参考。
[解决办法]
断点续传机制需要楼主看一下HTTP协议.

MHFRunError Called when RunL leaves from a transaction event. This works in the same way as CActve::RunError; return KErrNone if you have handled the error. If you don 't completely handle the error, a panic will occur.


THTTPEvent::EFailed
The transaction has failed. This is a 'catch-all ' for communicating failures, and more details of the failure should have been notified in previous messages or status codes. If the client could process these then it is possible that it should not consider the transaction a failure. For instance a browser that displays the body of 404 responses to the user would not consider a 404 response to be a failure, as it would display it just like a 200 response even though a 404 will be flagged as a 'failure '. An incoming event

热点排行