Lines Matching refs:hostent
51 static void sort_addresses(const struct hostent *host,
53 static void sort6_addresses(const struct hostent *host,
69 struct hostent *hostent = NULL;
73 status = (int)ares__addrinfo2hostent(result, AF_UNSPEC, &hostent);
79 if (status == ARES_SUCCESS && hostent &&
80 (!hostent->h_addr_list || !hostent->h_addr_list[0])) {
84 if (status == ARES_SUCCESS && ghbn_arg->channel->nsort && hostent) {
85 if (hostent->h_addrtype == AF_INET6) {
86 sort6_addresses(hostent, ghbn_arg->channel->sortlist,
89 if (hostent->h_addrtype == AF_INET) {
90 sort_addresses(hostent, ghbn_arg->channel->sortlist,
95 ghbn_arg->callback(ghbn_arg->arg, status, timeouts, hostent);
99 ares_free_hostent(hostent);
128 static void sort_addresses(const struct hostent *host,
184 static void sort6_addresses(const struct hostent *host,
240 struct hostent **host_out)
274 struct hostent **host)
319 int family, struct hostent **host)