gethostbyname() wraps the NetLibGetHostByName() function on Palm OS, so this error make sense. It would help if you would post the error code.

The biggest thing to remember is that all the NetLib calls have a timeout value associated with them. Resolving host names can take longer than other calls, due to the fact that you may have to how name resolution works in the internet. This usually doesn't show up on the emulator but almost always on the actual devices. You would get a netErrTimeout error on the gethostbyname()/NetLibGetHostByName() call if this is the scenario.

The trick is to set the timeout value to a large number (say 1 minute) before the call to gethostbyname()/NetLibGetHostByName() and then tweak it back down for the other calls.

At 03:00 AM 2/1/2004, <[EMAIL PROTECTED]> wrote:
i am getting an error of nellibgethostbyname even if i
am not using it in the code , i am using
gethostbyname... so any help regarding this topic will
be greatly appreciated.

thank you


----
Tom Frauenhofer, [EMAIL PROTECTED]
http://www.beret.com




--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to