Lines Matching refs:async
239 static void destroy_async_data(struct Curl_async *async);
247 if(data->state.async.resolver) in Curl_resolver_cancel()
248 ares_cancel((ares_channel)data->state.async.resolver); in Curl_resolver_cancel()
249 destroy_async_data(&data->state.async); in Curl_resolver_cancel()
266 static void destroy_async_data(struct Curl_async *async) in destroy_async_data() argument
268 if(async->tdata) { in destroy_async_data()
269 struct thread_data *res = async->tdata; in destroy_async_data()
277 async->tdata = NULL; in destroy_async_data()
295 int max = ares_getsock((ares_channel)data->state.async.resolver, in Curl_resolver_getsock()
298 ares_timeout((ares_channel)data->state.async.resolver, &maxtime, &timebuf); in Curl_resolver_getsock()
323 bitmask = ares_getsock((ares_channel)data->state.async.resolver, socks, in waitperform()
354 ares_process_fd((ares_channel)data->state.async.resolver, ARES_SOCKET_BAD, in waitperform()
359 ares_process_fd((ares_channel)data->state.async.resolver, in waitperform()
378 struct thread_data *res = data->state.async.tdata; in Curl_resolver_is_resolved()
407 ares_cancel((ares_channel)data->state.async.resolver); in Curl_resolver_is_resolved()
418 if(!data->state.async.dns) in Curl_resolver_is_resolved()
421 *dns = data->state.async.dns; in Curl_resolver_is_resolved()
423 destroy_async_data(&data->state.async); in Curl_resolver_is_resolved()
474 tvp = ares_timeout((ares_channel)data->state.async.resolver, &store, &tv); in Curl_resolver_wait_resolv()
488 if(result || data->state.async.done) in Curl_resolver_wait_resolv()
509 ares_cancel((ares_channel)data->state.async.resolver); in Curl_resolver_wait_resolv()
514 *entry = data->state.async.dns; in Curl_resolver_wait_resolv()
581 res = data->state.async.tdata; in query_completed_cb()
586 struct Curl_addrinfo *ai = Curl_he2ai(hostent, data->state.async.port); in query_completed_cb()
737 struct thread_data *res = data->state.async.tdata; in addrinfo_cb()
768 data->state.async.hostname = res->hostname; in Curl_resolver_getaddrinfo()
769 data->state.async.port = port; in Curl_resolver_getaddrinfo()
770 data->state.async.done = FALSE; /* not done */ in Curl_resolver_getaddrinfo()
771 data->state.async.status = 0; /* clear */ in Curl_resolver_getaddrinfo()
772 data->state.async.dns = NULL; /* clear */ in Curl_resolver_getaddrinfo()
773 data->state.async.tdata = res; in Curl_resolver_getaddrinfo()
803 ares_getaddrinfo((ares_channel)data->state.async.resolver, hostname, in Curl_resolver_getaddrinfo()
814 ares_gethostbyname((ares_channel)data->state.async.resolver, hostname, in Curl_resolver_getaddrinfo()
816 ares_gethostbyname((ares_channel)data->state.async.resolver, hostname, in Curl_resolver_getaddrinfo()
825 ares_gethostbyname((ares_channel)data->state.async.resolver, in Curl_resolver_getaddrinfo()
852 ares_result = ares_set_servers_ports_csv(data->state.async.resolver, in Curl_set_dns_servers()
855 ares_result = ares_set_servers_csv(data->state.async.resolver, servers); in Curl_set_dns_servers()
886 ares_set_local_dev((ares_channel)data->state.async.resolver, interf); in Curl_set_dns_interface()
912 ares_set_local_ip4((ares_channel)data->state.async.resolver, in Curl_set_dns_local_ip4()
940 ares_set_local_ip6((ares_channel)data->state.async.resolver, a6); in Curl_set_dns_local_ip6()