×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    16

    RConnection::Start opens internet connection?

    I want to make an automatic connection to the internet from a mobile phone, without having to select a IAP during executation of my application. I use the following code:


    iSocketServ.Connect();

    iConnection.Open(iSocketServ));

    TInt iapID = 7;
    TCommDbConnPref prefs;
    prefs.SetIapId(iapID);
    prefs.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);

    iConnection.Start(prefs);

    iListenSocket.Open(iSocketServ, KAfInet, KSockStream, KProtocolInetTcp, iConnection);

    err = iListenSocket.Bind(inetAddr);
    if (err != KErrNone) {
    print("error = %d \n", err);
    }


    However, the call to the function bind returns -1.

    Only when I first make an explicit connection to the internet by means of another application, which explicitly asks me to select an IAP, the bind function works fine.
    But, as I understood, the call to iConnection.iStart(prefs) is supposed to make an internet connection itself.
    Why doesn´t that work?
    Last edited by machiel; 2008-05-26 at 15:44.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    104

    Re: RConnection::Start opens internet connection?

    For automatic connection to the internet, you can set it in browser prefrences.

    go to browser -> options -> prefrences & change the default access point as u wish (internet / WAP / WLAN). And there will be some option like, Always ask / use default. Try using use default.
    http://celluleus.blogspot.com

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

    Re: RConnection::Start opens internet connection?

    Thanks for your answer.
    However, I don´t want to use any browser. I want to set the IAP by my own application and make a connection from this program as well, without having to start up a browser first. I thought, with RConnnection::Start this was possible?

Similar Threads

  1. Replies: 5
    Last Post: 2008-01-08, 15:17
  2. Share internet connection between PC and Nokia 6630
    By alvan in forum Bluetooth Technology
    Replies: 4
    Last Post: 2007-03-10, 15:56
  3. Access to pc internet connection with bluetooth
    By pisciu in forum Bluetooth Technology
    Replies: 1
    Last Post: 2006-11-06, 13:05
  4. internet connection
    By lanky in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2006-09-08, 21:25
  5. Internet connection with Nokia 7650 Emulator
    By hgroth in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2002-08-26, 15:27

Posting Permissions

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