Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

How to detect HTTP connection break

From Wiki
Jump to: navigation, search
Article Metadata
Created: rathodavinash (27 Jun 2007)
Last edited: hamishwillee (26 Jul 2012)

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);

if the connection breaks

void CIAPConnectProgressNotifier::RunL()

RunL will give the exact state of the connection.

Header File:

#include <Es_sock.h>

Link against:

This page was last modified on 26 July 2012, at 02:40.
20 page views in the last 30 days.