This page was last modified 09:57, 26 November 2007.
Default iap
From Forum Nokia Wiki
For selecting default IAP for 2nd and 3rd edition.
Place the code below after iSession.OpenL()
User::LeaveIfError(isockServ.Connect()); User::LeaveIfError(iconnection.Open(isockServ)); // TCommDbConnPref pref; TUint32 m_Iap=0; pref.SetIapId(m_Iap); pref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt); pref.SetDirection(ECommDbConnectionDirectionOutgoing); pref.SetBearerSet( ECommDbBearerGPRS | ECommDbBearerCdma2000 | ECommDbBearerLAN | ECommDbBearerCSD ); iconnection.Start(pref); RStringPool strP = iSession.StringPool(); RHTTPConnectionInfo connInfo = iSession.ConnectionInfo(); connInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable() ), THTTPHdrVal (isockServ.Handle()) ); TInt connPtr = REINTERPRET_CAST(TInt, &iconnection); connInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable() ), THTTPHdrVal (connPtr) );
Declare RSocketServ isockServ and RConnection iconnection as class members.
See also
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mission impossible.... | ineelabh | General Symbian C++ | 5 | 2007-09-19 09:35 |
| API available for configuring IAP in hidden mode...? | amitS | Symbian Networking & Messaging | 0 | 2008-04-16 10:53 |
| WAP or Internet IAP? | Greysfi | Symbian Networking & Messaging | 1 | 2007-01-19 16:16 |
| Socket.Open() causes app to crash | schnesim | Symbian Networking & Messaging | 5 | 2008-07-15 08:48 |
| [help] my code is out of use | sala1987 | General Symbian C++ | 3 | 2007-11-13 15:48 |
