×
Namespaces

Variants
Actions

How to detect HTTP connection break

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
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);
SetActive();

if the connection breaks

void CIAPConnectProgressNotifier::RunL()

RunL will give the exact state of the connection.

Header File:

#include <Es_sock.h>

Link against:

LIBRARY ESock.lib
This page was last modified on 26 July 2012, at 05:40.
57 page views in the last 30 days.
×