How to detect HTTP connection break
Many a times HTTP connection breaks due to some reasons. The connection may be WIFI or HTTP. Applications should be well equipped to catch these connection breaks. The HTTP Client source codes on ForumNokia comes along with the code to catch these connection breaks. The older version of this example missed this feature.
The CIAPConnectProgressNotifier class implements this.
iConnection.ProgressNotification(iProgress, iStatus);
SetActive();if the connection breaks
void CIAPConnectProgressNotifier::RunL()RunL will give the exact state of the connection.
Header File : Es_sock.h
Link against : ESock.lib
Retrieved from "http://wiki.forum.nokia.com/index.php/How_to_detect_HTTP_connection_break"
本文介绍了一种检测HTTP连接中断的方法,使用CIAPConnectProgressNotifier类中的iConnection.ProgressNotification方法可以有效地捕捉到连接中断的情况。当连接中断时,RunL()会提供连接的确切状态。
4335

被折叠的 条评论
为什么被折叠?



