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 »
Latest Posts:
- Would-be Japanese space tourist wants $21M back
- NASA scales back flagship Mars mission
- Bulgarian archaeologists unearth ancient chariot
- Witnesses: Large meteor streaks across Canada sky
- Solar panels on graves give power to Spanish town
- Fuel from food? The feast is over
- Fabulous flippers: Dolphins have quite the kick
- Whales rescued from Australian beach join pod
- Siberian quake triggers false US seismic reports
- Pirates sign Indian _ not Cleveland _ pitchers

