Lines Matching refs:host

43 char *host2ip(char *host);
47 int ipv6_ip(char *host);
48 int dotted_ip(char *host, int partial);
62 int connect_tcp(char *host, int port);
68 char *host2ip(char *host) { in host2ip() argument
77 hp = gethostbyname(host); in host2ip()
139 char *p, *host, a[2]; in ipv6_ip() local
143 host = host_in + 1; in ipv6_ip()
145 host = host_in; in ipv6_ip()
148 if (strstr(host, "::ffff:") == host || strstr(host, "::FFFF:") == host) { in ipv6_ip()
149 return dotted_ip(host + strlen("::ffff:"), 0); in ipv6_ip()
154 p = host; in ipv6_ip()
175 int dotted_ip(char *host, int partial) { in dotted_ip() argument
177 char *p = host; in dotted_ip()
179 if (!host) { in dotted_ip()
183 if (!isdigit((unsigned char) host[0])) { in dotted_ip()
187 len = strlen(host); in dotted_ip()
188 if (!partial && !isdigit((unsigned char) host[len-1])) { in dotted_ip()
318 if ((sock = connect_tcp(client->host, 113)) < 0) { in ident_username()
329 } else if ((sock = connect_tcp(client->host, 113)) < 0) { in ident_username()
331 client->host, 113); in ident_username()
406 newhost = ip2host(client->host); in ident_username()
713 int connect_tcp(char *host, int port) { in connect_tcp() argument
721 rfbLog("connect_tcp: trying: %s %d\n", host, port); in connect_tcp()
728 fd = rfbConnectToTcpAddr(host, port); in connect_tcp()
737 rfbLog("connect_tcp: re-trying %s %d\n", host, port); in connect_tcp()
740 fd = rfbConnectToTcpAddr(host, port); in connect_tcp()
754 rfbLog("connect_tcp: trying IPv6 %s %d\n", host, port); in connect_tcp()
764 if(ipv6_ip(host)) { in connect_tcp()
766 rfbLog("connect_tcp[ipv6]: setting AI_NUMERICHOST for %s\n", host); in connect_tcp()
774 if (!strcmp(host, "127.0.0.1")) { in connect_tcp()
776 } else if (host[0] == '[') { in connect_tcp()
777 host2 = strdup(host+1); in connect_tcp()
779 host2 = strdup(host); in connect_tcp()
868 if (host[0] == '[') { in connect_tcp()
869 host2 = strdup(host+1); in connect_tcp()
871 host2 = strdup(host); in connect_tcp()