Lines Matching refs:hosts
88 char **hosts, *svcport_str = NULL;
150 hosts_bak = realloc(hosts, nhosts * sizeof(char *));
152 if (hosts != NULL) {
154 free(hosts[i]);
155 free(hosts);
159 hosts = hosts_bak;
160 hosts[nhosts - 1] = strdup(optarg);
161 if (hosts[nhosts - 1] == NULL) {
163 free(hosts[i]);
164 free(hosts);
219 * If no hosts were specified, add a wildcard entry to bind to
224 hosts = malloc(sizeof(char *));
225 if (hosts == NULL)
228 hosts[0] = strdup("*");
232 hosts_bak = realloc(hosts, (nhosts + 2) *
236 free(hosts[i]);
237 free(hosts);
240 hosts = hosts_bak;
243 hosts[nhosts - 2] = strdup("::1");
245 hosts_bak = realloc(hosts, (nhosts + 1) * sizeof(char *));
248 free(hosts[i]);
250 free(hosts);
254 hosts = hosts_bak;
257 hosts[nhosts - 1] = strdup("127.0.0.1");
557 if (inet_pton(AF_INET, hosts[nhostsbak],
564 if (inet_pton(AF_INET6, hosts[nhostsbak],
573 if (inet_pton(AF_INET6, hosts[nhostsbak],
580 if (inet_pton(AF_INET, hosts[nhostsbak],
593 * If no hosts were specified, just bind to INADDR_ANY
595 if (strcmp("*", hosts[nhostsbak]) == 0) {
645 if ((aicode = getaddrinfo(hosts[nhostsbak], svcport_str,