Lines Matching refs:hostname
140 hostname[HTTP_MAX_URI], /* Hostname */ in cupsGetPPD3() local
180 httpGetHostname(http, hostname, sizeof(hostname)); in cupsGetPPD3()
183 strlcpy(hostname, cupsServer(), sizeof(hostname)); in cupsGetPPD3()
184 if (hostname[0] == '/') in cupsGetPPD3()
185 strlcpy(hostname, "localhost", sizeof(hostname)); in cupsGetPPD3()
188 if (!_cups_strcasecmp(hostname, "localhost")) in cupsGetPPD3()
311 if (!cups_get_printer_uri(http, name, hostname, sizeof(hostname), &port, in cupsGetPPD3()
315 DEBUG_printf(("2cupsGetPPD3: Printer hostname=\"%s\", port=%d", hostname, in cupsGetPPD3()
318 if (cupsServer()[0] == '/' && !_cups_strcasecmp(hostname, "localhost") && port == ippPort()) in cupsGetPPD3()
324 strlcpy(hostname, cupsServer(), sizeof(hostname)); in cupsGetPPD3()
327 DEBUG_printf(("2cupsGetPPD3: Redirecting to \"%s\".", hostname)); in cupsGetPPD3()
338 if (!_cups_strcasecmp(localhost, hostname)) in cupsGetPPD3()
339 strlcpy(hostname, "localhost", sizeof(hostname)); in cupsGetPPD3()
355 if (!_cups_strcasecmp(http_hostname, hostname) && port == http_port) in cupsGetPPD3()
357 else if ((http2 = httpConnect2(hostname, port, NULL, AF_UNSPEC, in cupsGetPPD3()