×

Discussion Board

Results 1 to 3 of 3

Thread: IAP questions

  1. #1
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    70

    Question IAP questions

    hi, my app use RSocket to send some data to a remote server, and it works but as usual when you want to stablish a data connection, your phone ask you about what connection use, in the phone i have for testing, i have 3 diferents IAPS, so, the user set the initial IAP, everithing is great but if something happens like a network failure and you get disconnected, you have to reconnect, my app also do that, but i have to manually enter the IAP i allready choose at the beginning, ive search about a way to get the ID of the current connection, found it but now i have another issue, to use the same IAP via my programm, the info that i found uses RConnection, but i dont, i only use a simple RSocket, and the Documentation is obscure about it, since i havent found a way to set the IAP before i do my "iSocket.Connect()".

    I have create a RConnection when i reconnect, to obtain the IAP from my SocketServer is kind of easy but after that i havent made it work with the socket, the example in wiki talks only about RConnection, and the DOCs are alike.

    please some one knows something?

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

    Re: IAP questions

    Try the Wiki. If you search for IAP you will get a rather useless page. In such situation try adding some redundant words to the search query, in order to avoid finding out the exact title of a page. For example Internet IAP is a good one.

  3. #3
    Registered User
    Join Date
    Feb 2008
    Location
    India
    Posts
    92

    Re: IAP questions

    Hi xchewy,

    Yes, you will need RConnection to set the IAP programatically so that you didn't get a prompt to select the IAP manually.
    You will need to set the preferences before RConnection.Start() using the following code:
    Code:
    TCommDbConnPref prefs;
    // Create overrides (connection preference variable)
    prefs. SetDialogPreference(ECommDbDialogPrefDoNotPrompt);
    prefs.SetDirection(ECommDbConnectionDirectionOutgoing);
    prefs.SetIapId(iConnIdArray[iConnId]);			
    // Sets the CommDb ID of the IAP to use for this connection
    User::LeaveIfError( iConnection.Start(prefs) ); // RConnection instance
    Regards,
    Suyash.

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
  •  
×