Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2007

    closing iap in runtime

    I got problem to close iap while my application is running.
    I send some data via http engine what uses 3g ap. I wuold like to close that connection and if possible change connection to use wlan ap.

    I have tried many things but that 3g connection comes up again and again application started to use wlan, but 3g ap is up too (there is no data transfers trought it). So how I can tell to Connection server that my application doesnt need that iap anymore.

    i have tried to iConnection.Stop(); Close(); and I have closed socketserver and recreated all but nothing helps.


  2. #2
    Registered User
    Join Date
    May 2007

    Re: closing iap in runtime

    if you use http example you will have to call again SetupConnectionL, and before that Close not only iConnection and iSocketServ but also iSession.
    If you still have any problem just ask.

    Good luck

  3. #3
    Registered User
    Join Date
    Nov 2007

    Re: closing iap in runtime

    thanks for quick reply I will test closing all again isession too. i dont use http example, but lets hope this will help

  4. #4
    Registered User
    Join Date
    Nov 2007

    Re: closing iap in runtime

            TRAPD( err1, iSession.OpenL( ) );
    	User::LeaveIfError( iSocketServ.Connect() );
    	User::LeaveIfError( iConnection.Open(iSocketServ) );
    	TCommDbConnPref pref; 			//for default ap
        pref.SetDialogPreference( ECommDbDialogPrefDoNotPrompt );
        pref.SetDirection( ECommDbConnectionDirectionOutgoing );
        pref.SetBearerSet( ECommDbBearerWLAN | ECommDbBearerGPRS | ECommDbBearerCdma2000 | ECommDbBearerLAN | ECommDbBearerCSD );
        iConnection.Start( pref );
    here it is stop closes ap and application starts using new iap. but after 1-3sec 3g iap comes active again. any ideas?

  5. #5
    Regular Contributor
    Join Date
    Nov 2006
    Chengdu China

    Re: closing iap in runtime

    what do you mean by '3G iap comes active again'?
    The dream is to become one machine, or let one machine become me

Similar Threads

  1. CommDB - Which IAP Id is the right IAP Id??
    By hoopsman in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2009-09-09, 20:52
  2. IAP query
    By kumar_sai123 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-07-21, 14:16
  3. Choose IAP for video streaming session
    By molst in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-12-05, 08:01
  4. RGenericAgent, RConnection, enumeration and IAP strange behavior PLEASE HELP!!!!!!!!
    By stenlik in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-12-20, 05:40
  5. Iap Creation and Connection.
    By shashishaw in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-07-20, 09:06

Posting Permissions

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