Home | History | Annotate | Download | only in cups

Lines Matching refs:hostname

136 					/* Hostname associated with connection */
139 char localhost[HTTP_MAX_URI],/* Local hostname */
140 hostname[HTTP_MAX_URI], /* Hostname */
180 httpGetHostname(http, hostname, sizeof(hostname));
183 strlcpy(hostname, cupsServer(), sizeof(hostname));
184 if (hostname[0] == '/')
185 strlcpy(hostname, "localhost", sizeof(hostname));
188 if (!_cups_strcasecmp(hostname, "localhost"))
293 if (!cups_get_printer_uri(http, name, hostname, sizeof(hostname), &port,
297 DEBUG_printf(("2cupsGetPPD3: Printer hostname=\"%s\", port=%d", hostname,
300 if (cupsServer()[0] == '/' && !_cups_strcasecmp(hostname, "localhost") && port == ippPort())
306 strlcpy(hostname, cupsServer(), sizeof(hostname));
309 DEBUG_printf(("2cupsGetPPD3: Redirecting to \"%s\".", hostname));
313 * Remap local hostname to localhost...
318 DEBUG_printf(("2cupsGetPPD3: Local hostname=\"%s\"", localhost));
320 if (!_cups_strcasecmp(localhost, hostname))
321 strlcpy(hostname, "localhost", sizeof(hostname));
324 * Get the hostname and port number we are connected to...
330 DEBUG_printf(("2cupsGetPPD3: Connection hostname=\"%s\", port=%d",
337 if (!_cups_strcasecmp(http_hostname, hostname) && port == http_port)
339 else if ((http2 = httpConnect2(hostname, port, NULL, AF_UNSPEC,
506 char *host, /* I - Hostname buffer */
507 int hostsize, /* I - Size of hostname buffer */
524 /* Hostname associated with connection */
553 * Get the hostname and port number we are connected to...