This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problems with GPRS: gethostbyname, gethostbyaddr


Problems with GPRS: gethostbyname, gethostbyaddr

Postby Shedal » Mar 17, 2006 @ 9:57pm

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 ;)
Shedal
pm Member
 
Posts: 10
Joined: Mar 4, 2006 @ 7:26pm
Location: Ukraine


Return to Windows Mobile


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron