1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

lib: documentation updates in README.hostip

c-ares now does support IPv6;
avoid implying threaded resolver is Windows-only;
two referenced source files were renamed in 7de2f92
This commit is contained in:
Colin Hogben 2014-06-18 10:04:22 +01:00 committed by Daniel Stenberg
parent ac5b6f8082
commit 0ab9e0c9d9

View File

@ -10,12 +10,12 @@
defined. defined.
CURLRES_ARES - is defined if libcurl is built to use c-ares for asynchronous CURLRES_ARES - is defined if libcurl is built to use c-ares for asynchronous
name resolves. It cannot have ENABLE_IPV6 defined at the same time, as c-ares name resolves. This can be Windows or *nix.
has no ipv6 support. This can be Windows or *nix.
CURLRES_THREADED - is defined if libcurl is built to run under (native) CURLRES_THREADED - is defined if libcurl is built to use threading for
Windows, and then the name resolve will be done in a new thread, and the asynchronous name resolves. The name resolve will be done in a new thread,
supported asynch API will be the same as for ares-builds. and the supported asynch API will be the same as for ares-builds. This is
the default under (native) Windows.
If any of the two previous are defined, CURLRES_ASYNCH is defined too. If If any of the two previous are defined, CURLRES_ASYNCH is defined too. If
libcurl is not built to use an asynchronous resolver, CURLRES_SYNCH is libcurl is not built to use an asynchronous resolver, CURLRES_SYNCH is
@ -23,13 +23,13 @@
The host*.c sources files are split up like this: The host*.c sources files are split up like this:
hostip.c - method-independent resolver functions and utility functions hostip.c - method-independent resolver functions and utility functions
hostasyn.c - functions for asynchronous name resolves hostasyn.c - functions for asynchronous name resolves
hostsyn.c - functions for synchronous name resolves hostsyn.c - functions for synchronous name resolves
hostares.c - functions for ares-using name resolves asyn-ares.c - functions for asynchronous name resolves using c-ares
hostthre.c - functions for threaded name resolves asyn-thread.c - functions for asynchronous name resolves using threads
hostip4.c - ipv4-specific functions hostip4.c - ipv4-specific functions
hostip6.c - ipv6-specific functions hostip6.c - ipv6-specific functions
The hostip.h is the single united header file for all this. It defines the The hostip.h is the single united header file for all this. It defines the
CURLRES_* defines based on the config*.h and curl_setup.h defines. CURLRES_* defines based on the config*.h and curl_setup.h defines.