Lines Matching refs:port

75 #define MAX_HOSTCACHE_LEN (255 + 7) /* max FQDN + colon + port number + zero */
161 * Create a hostcache id string for the provided host + port, to be used by
167 int port, char *ptr, size_t buflen)
179 olen += msnprintf(ptr, 7, ":%u", port);
282 int port)
287 /* Create an entry id, based upon the hostname and port */
288 size_t entry_len = create_hostcache_id(hostname, 0, port,
296 entry_len = create_hostcache_id("*", 1, port, entry_id, sizeof(entry_id));
362 int port)
369 dns = fetch_addr(data, hostname, port);
476 int port)
500 /* Create an entry id, based upon the hostname and port */
501 entry_len = create_hostcache_id(hostname, hostlen, port,
509 dns->hostport = port;
528 static struct Curl_addrinfo *get_localhost6(int port, const char *name)
535 unsigned short port16 = (unsigned short)(port & 0xffff);
565 static struct Curl_addrinfo *get_localhost(int port, const char *name)
573 unsigned short port16 = (unsigned short)(port & 0xffff);
596 ca6 = get_localhost6(port, name);
686 int port,
712 dns = fetch_addr(data, hostname, port);
759 addr = Curl_ip2addr(AF_INET, &in, hostname, port);
769 addr = Curl_ip2addr(AF_INET6, &in6, hostname, port);
801 addr = get_localhost(port, hostname);
804 addr = Curl_doh(data, hostname, port, &respwait);
814 addr = Curl_getaddrinfo(data, hostname, port, &respwait);
836 dns = Curl_cache_addr(data, addr, hostname, 0, port);
894 int port,
928 return Curl_resolv(data, hostname, port, TRUE, entry);
992 rc = Curl_resolv(data, hostname, port, TRUE, entry);
1135 /* Create an entry id, based upon the hostname and port */
1158 int port = 0;
1180 port = (int)tmp_port;
1221 ai = Curl_str2addr(address, port);
1248 /* Create an entry id, based upon the hostname and port */
1249 entry_len = create_hostcache_id(host_begin, hlen, port,
1260 (int)hlen, host_begin, port);
1276 dns = Curl_cache_addr(data, head, host_begin, hlen, port);
1294 (int)hlen, host_begin, port, addresses,
1300 infof(data, "RESOLVE *:%d using wildcard", port);