1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 11:35:07 -05:00

Added note for CURLRES_ARES and CURLRES_IPV6.

This commit is contained in:
Gisle Vanem 2006-07-25 10:49:12 +00:00
parent e4d6ade4b3
commit 4a1a1a75fb

View File

@ -112,8 +112,8 @@ static CURLcode addrinfo_callback(void *arg, /* "struct connectdata *" */
if(CURL_ASYNC_SUCCESS == status) { if(CURL_ASYNC_SUCCESS == status) {
/* /*
* IPv4: Curl_addrinfo_copy() copies the address and returns an allocated * IPv4/ares: Curl_addrinfo_copy() copies the address and returns an
* version. * allocated version.
* *
* IPv6: Curl_addrinfo_copy() returns the input pointer! * IPv6: Curl_addrinfo_copy() returns the input pointer!
*/ */
@ -164,6 +164,9 @@ CURLcode Curl_addrinfo6_callback(void *arg, /* "struct connectdata *" */
int status, int status,
struct addrinfo *ai) struct addrinfo *ai)
{ {
/* NOTE: for CURLRES_ARES, the 'ai' argument is really a
* 'struct hostent' pointer.
*/
return addrinfo_callback(arg, status, ai); return addrinfo_callback(arg, status, ai);
} }
#endif #endif