Description
Hi,
My Qt S60 program would access the Internet though CMWAP conncetion.
Firstly, I open the CMWAP by the below code as:
//iSocketServ and iConnection are the class member variable ...... User::LeaveIfError(iSocketServ.Connect()); User::LeaveIfError(iConnection.Open(iSocketServ)); TCommDbConnPref connectPref; connectPref.SetBearerSet(ECommDbBearerGPRS|ECommDbBearerPSD|ECommDbBearerWLAN); connectPref.SetDialogPreference(ECommDbDialogPrefPrompt); User::LeaveIfError(iConnection.Start(connectPref)); ...... //user select the CMWAP ...... //query the CMWAP's real name to strIapName... ...... struct ifreq ifReq; memset(&ifReq, 0, sizeof(struct ifreq)); strcpy(ifReq.ifr_name, strIapName.toUtf8().data()); setdefaultif(&ifReq);
It works and program can access Internet in first time in N8 and N97.
But after I disconnect the CMWAP connection by manual or the mobile disconnect automaticlly after long time wait,
the source code can open the CMWAP connection again and keep it on, but our program can't access the Internet with QNAM through the new CMWAP connection in N8.
But the QNAM can access the Internet through the new CMWAP connection in N97.
Thanks a lot!
Wei Song