×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    116

    Selecting a Access point takes much time

    Hi,

    I am opening a connection with socketServer. If the access point is a WLAN then its ok but if the access point is a GPRS or 3G then it takes sometimes after selecting the access points. Is there any way to improve the selection timing..?

    static RSocketServ aSocketServer;
    static RConnection aConn;

    // Initialize RSocketServ
    User::LeaveIfError(aSocketServer.Connect());

    // Open up a connection
    User::LeaveIfError(aConn.Open(aSocketServer)));

    User::LeaveIfError( aConn.Start( ) ); //here the application selecting access points


    Thanks
    Opu

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Selecting a Access point takes much time

    Connecting to a network takes some time. If your application has other things to do, you can use the asyncronous overload of RSocket::Start, and wrap the actions into an active object.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    116

    Re: Selecting a Access point takes much time

    Thanks wizard for your suggestion.

    I am facing another serious problem. If the internet connection disconnect somehow then the application hang. It cannot able to do anything then and after sometimes it crashed. Is there anyways there to solve the prblem?
    Opu

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: Selecting a Access point takes much time

    Do not forget getting the panic code (http://wiki.forum.nokia.com/index.ph...ded_panic_code)
    If you are using any User::WaitForRequest calls, the crash is inevitable. Otherwise (if you are using active objects only) it should not happen, sooner or later your various RSocket calls should complete with KErrTimedOut, KErrDisconnected or something else.

Similar Threads

  1. Replies: 3
    Last Post: 2009-10-10, 19:34
  2. Nokia 3555 WAP Access Point Problem
    By kamyu2881 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2008-11-25, 13:55
  3. Replies: 9
    Last Post: 2008-10-30, 07:27
  4. Selecting access point automatically
    By ylandgraf in forum Wired and Wireless interfaces (Closed)
    Replies: 3
    Last Post: 2008-09-04, 09:36
  5. Creating access point
    By emunokia in forum Symbian Networking & Messaging (Closed)
    Replies: 15
    Last Post: 2007-03-23, 14:39

Posting Permissions

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