Please, show me why don't resolve domain name to IP address on S60 3rd !!!
| Sun, 2008-06-01 16:52 | |
|
// Sockets objects TInetAddr :: Cast(aInetAddr).Output(ipAddr); |
|
| Sun, 2008-06-01 16:52 | |
|
// Sockets objects TInetAddr :: Cast(aInetAddr).Output(ipAddr); |
|
Forum posts: 162
Hi bblazy,
First of all, there's a big difference between 2nd edition and 3rd edition SDKs IIRC, which is the 3rd edition SDKs actually use Symbian OS 9x. This means you need to take care of platform security issues.
Since you are using IP DNS lookup, you'll need to assign your executable NetworkServices capability to use DNS lookup.
Apart form that, another issue you might have is you may have is using 'implicit' host resolver. You may want to use an RConnection instance while opening the RHostResolver (you can simply start the connection using the default preferences by calling RConnection::Srat with no params).
Also, an efficiency warning. You can always write:
TInetAddr sockAddr = nameEntry().iAddr;
You don't need to go through the casting business.
http://www.tanzim.co.uk
Forum posts: 2
Thank maxxxpayne so much. I see. And I think my problem is how to assign my executable Network Services capability to use DNS lookup. I don't know how to do that. Show me please!!!
( When I run on 2nd, I have to choose Network Services automatic. On 3rd, what should i do??? )
Forum posts: 2
Hi bblazy,have you solved this problem ??
I get an ip address for "www.sina.net" with "2.0.2...1.0.8", could some guy give me an answer ? I have NetworkService capability by the way.
Thank you all.