async resolvers: further cleanups

asyn-ares.c and asyn-thread.c are two separate backends that implement
the same (internal) async resolver API for libcurl to use. Backend is
specified at build time.

The internal resolver API is defined in asyn.h for asynch resolvers.
This commit is contained in:
Daniel Stenberg 2011-01-31 00:10:35 +01:00
parent 24d84da073
commit 7de2f9271c
15 changed files with 302 additions and 299 deletions

View file

@ -1995,7 +1995,7 @@ connect_host(struct SessionHandle *data,
if((CURLE_OK == res) && async) {
/* Now, if async is TRUE here, we need to wait for the name
to resolve */
res = Curl_wait_for_resolv(*conn, NULL);
res = Curl_resolver_wait_resolv(*conn, NULL);
if(CURLE_OK == res)
/* Resolved, continue with the connection */
res = Curl_async_resolved(*conn, &protocol_done);
@ -2047,7 +2047,7 @@ Curl_reconnect_request(struct connectdata **connp)
if(async) {
/* Now, if async is TRUE here, we need to wait for the name
to resolve */
result = Curl_wait_for_resolv(conn, NULL);
result = Curl_resolver_wait_resolv(conn, NULL);
if(result)
return result;