Searched refs:nservers (Results 1 – 12 of 12) sorted by relevance
69 static int config_nameserver(struct server_state **servers, int *nservers,93 x->nservers > -1 && \135 channel->nservers = -1; in ares_init_options()232 if ((channel->flags & ARES_FLAG_PRIMARY) && channel->nservers > 1) in ares_init_options()233 channel->nservers = 1; in ares_init_options()285 for (i = 0; i < src->nservers; i++) in ares_dup()352 if (channel->nservers) { in ares_save_options()353 for (i = 0; i < channel->nservers; i++) in ares_save_options()364 for (i = j = 0; i < channel->nservers; i++) in ares_save_options()375 options->nservers = ipv4_nservers; in ares_save_options()[all …]
57 if (channel->nservers < 1) in ares_send()63 query->server_info = ares_malloc(channel->nservers * in ares_send()99 channel->last_server = (channel->last_server + 1) % channel->nservers; in ares_send()101 for (i = 0; i < channel->nservers; i++) in ares_send()
43 for (i = 0; i < channel->nservers; i++) in ares_get_servers()98 for (i = 0; i < channel->nservers; i++) in ares_get_servers_ports()174 channel->nservers = num_srvrs; in ares_set_servers()226 channel->nservers = num_srvrs; in ares_set_servers_ports()
103 for (i = 0; i < channel->nservers; i++) in ares__destroy_servers_state()112 channel->nservers = -1; in ares__destroy_servers_state()
217 for (i = 0; i < channel->nservers; i++) in write_tcp_data()368 for (i = 0; i < channel->nservers; i++) in read_tcp_data()475 for (i = 0; i < channel->nservers; i++) in read_udp_packets()670 for (i = 0; i < channel->nservers; i++) in process_broken_connections()751 if (channel->nservers > 1) in skip_server()764 while (++(query->try_count) < (channel->nservers * channel->tries)) in next_server()769 query->server = (query->server + 1) % channel->nservers; in next_server()877 const int shift = query->try_count / channel->nservers; in ares__send_query()1438 for (i = 0; i < channel->nservers; i++) in end_query()1495 for (i = 0; i < channel->nservers; i++) in end_query()
33 for (i = 0; i < channel->nservers; i++) in ares_fds()
33 for (i = 0; i < channel->nservers; i++) in ares_getsock()
59 for (i = 0; i < channel->nservers; i++) in ares_cancel()
301 int nservers; member
270 int nservers; member
185 options.nservers = 0; in main()
1538 timeplus = channel->timeout << (query->try_count / channel->nservers);1575 sanity check was added in ares_send() to ensure nservers >= 1 or