I am developing a program for nokia6600.In my program, a dialog will pop up to ask
user to select a access point to connect to internet.My code is following:
CCommsDatabase* db = CCommsDatabase::NewL(EDatabaseTypeIAP);
pApSettingDlg = CApSettingsHandler::NewLC(ETrue, EApSettingsSelListIsListPane,
EApSettingsSelMenuSelectNormal, KEApIspTypeAll, EApBearerTypeAll, KEApSortNameAscending);
class CApEngine is derived form CActive.In CApEngine::RunL() , the return iStatus is KErrNone,
indicate that the connection is created(indeed, the G icon occur in my phone screen).Then I open
a socket to connect to server by name, but when resolving DNS, error occured.My code is as follow:
// Open channel to Socket Server
// Initiate DNS
User::LeaveIfError(m_Resolver.Open(m_SocketServ, KAfInet, KProtocolInetUdp));
// DNS request for name resolution
m_Resolver.GetByName(aServerName, m_NameEntry, iStatus);
// Request time out
But in RunL(), the return iStatus is not KErrNone,that is some error happen in resolving DNS.
Can anybody tell me why?
Thanks a lot in advance!