|
| Re: How to detect Connection lost Status? |
 |
Wed, 24 Jan 2007 14:45:05 +020 |
Yes, you can use RConnection API. I do this in an application (on Symbian
7.0s and 8.0).
Simply call RConnection::ProgressNotification again once connection is up (I
guess you use this function already to detect when connection is complete
for the first time). You'll get a notification once the connection status
changes, and then you should call it again for the next notification.
The connection status will be available in TNifProgressBuf::iStage. It
should be KLinkLayerOpen. KDataTransferTemporarilyBlocked indicates GPRS
suspend status. Other values mean the connection is closing or reopening
afaik. The constants are defined in nifvar.h.
Uriah
|
| Post Reply
|
| How to detect Connection lost Status? |
 |
Wed, 24 Jan 2007 17:20:29 +070 |
I use RConnection to connect to specific IAP, for used by HTTP API. But
when the connection are Disconnected or disconnect by using Conn Mgr,
some times HTTP API doesn't get disconnect event.
So the only way I think to monitor the RConnection object. Can I get the
notification if connection lost from RConnection? How?
|
| Post Reply
|
|
|
|
|
|
|
|
|
|