cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: LibCurl fails to resolve host on VxWorks platform

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Mon, 30 Jul 2007 15:49:23 +0200

I don't know the platform, but Google(VxWorks gethostbyname) found page
http://www.xs4all.nl/~borkhuis/vxworks/ftp/vxhacks/pso_stack/apps/ttcp.c
that contains
 
#ifndef VXWORKS
      if ((addr = gethostbyname(host)) == NULL)
        err("bad hostname");
      sinhim.sin_family = addr->h_addrtype;
      bcopy(addr->h_addr, (char *) &addr_tmp, addr->h_length);
#else
if ((addr = hostGetByName(host)) == ERROR)
      err("bad hostname");
      sinhim.sin_family = AF_INET;
      addr_tmp = addr;
#endif

'hope that helps

________________________________

From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Sapana Hanchate
Sent: Monday, July 30, 2007 15:15
To: curl-library_at_cool.haxx.se
Subject: LibCurl fails to resolve host on VxWorks platform

Hi All
 
File "Hostip4.c" of LibCurl uses "getHostByName()" function to get IP
addr of host given its name.
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?
 
Regards
Sapana

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com
        
Received on 2007-07-30