cURL / Mailing Lists / curl-library / Single Mail

curl-library

lwIP not using getaddrinfo()

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Thu, 22 Sep 2011 22:56:27 +0200

Playing with lwIP, I see libcurl (Win32/MSVC) doesn't use getaddrinfo().
Although lwIP has it. This stack-trace shows it:

...
lwip.dll!sys_arch_sem_wait+0xbb
lwip.dll!netconn_gethostbyname+0xb6
lwip.dll!lwip_gethostbyname_r+0x87
curl.exe!Curl_ipv4_resolve_r+0x78
curl.exe!Curl_resolver_getaddrinfo+0x6b
curl.exe!Curl_resolv+0xf0
curl.exe!Curl_resolv_timeout+0x2c
curl.exe!resolve_server+0x12d
curl.exe!create_conn+0x4ea
curl.exe!Curl_connect+0x1d
curl.exe!connect_host+0x27
curl.exe!Curl_do_perform+0x42
curl.exe!Curl_perform+0x17
curl.exe!curl_easy_perform+0xa0
curl.exe!operate+0x244e
curl.exe!main+0x42
...

But I cannot make sense of the messy #ifdef-ing to select the "correct"
resolver. We have been told for like 10 years that gethostbyname() has
been deprecated. At least on Windows. So someone help me fix this.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-22