curl-library
Re: LibCurl fails to resolve host on VxWorks platform
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 30 Jul 2007 15:40:32 +0200 (CEST)
Date: Mon, 30 Jul 2007 15:40:32 +0200 (CEST)
On Mon, 30 Jul 2007, Sapana Hanchate wrote:
>
> Hi All
>
> File "Hostip4.c" of LibCurl uses "getHostByName()" function to get IP addr
> of host given its name.
No. But the file hostip4.c uses gethostbyname(), which probably is what you
meant.
> But this function is not defined for platform VxWorks. So Libcurl fails to
> resolve the host and thus can not process the request further. Is there any
> workaround for this issue?
You should rather ask windriver about their problems, not us. I figure they
have some other way to resolve host names, so you can write a wrapper layer
that provides a working gethostbyname() for libcurl's use...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-07-30