Page 1 of 1

Problems with GPRS: gethostbyname, gethostbyaddr

PostPosted: Mar 17, 2006 @ 9:57pm
by Shedal
I develop icq messenger. I had no problems with connecting to server, downloading contact list etc. while using ActiveSync "Pass-through" connection to the internet. But when I tried to connect via GPRS, connection failed.
I have found the error: hostent* gethostbyname(char *) returns NULL (that is, host cannot be found in the database or The name is not an official host name or alias). But it returns NULL only if I pass ip-address as parameter. If I give a domain name as parameter, it works right via GPRS.
I tried to use gethostbyaddr instead, but it fails the same.

If anybody knows how to help me, hint me the solutuin ;)