How to get IAP ID of a connection

The code sample below illustrates how to get the IAP ID used by a connection.

_LIT(KIapIdSettingName, "IAP\\id");
 
// start a test connection
RSocketServ socketServ;
User::LeaveIfError(socketServ.Connect());
CleanupClosePushL(socketServ);
 
RConnection connection;
User::LeaveIfError(connection.Open(socketServ));
CleanupClosePushL(connection);
 
User::LeaveIfError(connection.Start());
 
// get the IAP ID
TUint32 iapId;
User::LeaveIfError(connection.GetIntSetting(KIapIdSettingName, iapId));
 
CleanupStack::PopAndDestroy(2); // connection, socketServ



Thank you for reading this post. You can now Leave A Comment (0) or Leave A Trackback.

Post Info

This entry was posted on Wednesday, July 2nd, 2008 and is filed under Blogroll.

You can follow any responses to this entry through the Comments Feed. You can Leave A Comment, or A Trackback.



Previous Post: Groups seek drilling halt near sage grouse habitat »
Next Post: Google wins source code ruling against Viacom »

Read More

Related Reading:



Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

You must be logged in to post a comment.

edwan