Lines Matching defs:host
53 static void get_sockaddr(char *host, void *buf)
61 if (*host == '[') {
62 host++;
63 s = strchr(host, ']');
65 else error_exit("bad address '%s'", host-1);
68 s = strrchr(host, ':');
69 if (s && strchr(host, ':') == s) {
72 } else if (s && strchr(host, ':') != s) {
89 status = getaddrinfo(host, NULL, &hints, &result);
90 if (status) error_exit("bad address '%s' : %s", host, gai_strerror(status));