Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 22:31, 7 July 2008.

How to get IAP ID of a connection

From Forum Nokia Wiki

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
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX