×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    21

    Detect connection lost

    hi,

    I have an application that use 2 IAP, first wifi the second 3g.
    I use the RConnection class to open a socket.
    The wifi is the dafault IAP. when i'm not under (my) wifi coverage i need to switch to 3g connection automaticaly.
    I need to detect the connection lost.
    now when i go away from the access point my application prompt me the access point popup (manual selection), i think RSocket doing it.
    So, there is a method to notify the AP lost so that re-open a new socket using the 3G connection?

    thanks

    alex

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Detect connection lost

    You can experiment with RConnectionMonitor (its documentation is almost useless - so also check rconnmon.h).

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Detect connection lost

    RConnection itself has promising status notification methods.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    21

    Re: Detect connection lost

    hi,
    i have tried with
    AllInterfaceNotification(TDes8 &aNotification, TRequestStatus &aStatus);
    or
    ProgressNotification(TNifProgressBuf &aProgress, TRequestStatus &aStatus, TUint aSelectedProgress=KConnProgressDefault);
    or
    ServiceChangeNotification(TUint32 &aNewISPId, TDes &aNewServiceType, TRequestStatus &aStatus);


    but they don't call the RunL method after the disconnession.

  5. #5
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Detect connection lost

    did you check my Wiki example already: http://wiki.forum.nokia.com/index.ph...on_Example.zip

Similar Threads

  1. Problem MMC+USB Connection
    By Fede81 in forum Symbian C++
    Replies: 1
    Last Post: 2007-06-14, 06:13
  2. Connection times out after 10 requests...
    By QSIPhone in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-04-09, 17:29
  3. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21
  4. terminal connection lost when I try to use 8520 as modem
    By tominthailand in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-18, 11:20
  5. Replies: 5
    Last Post: 2003-02-07, 11:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •