Lines Matching defs:hostname
435 determine_scanner_serial (const char *hostname, const char * mac_address, char *serial)
441 /* if available we use the hostname or ipv4 address of the printer */
444 strcpy(copy, hostname);
510 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find hostname or address in %s\n", devname));
529 PDBG (bjnp_dbg (LOG_NOTICE, "split_uri: ERROR - Can not find hostname or address in %s\n", devname));
802 * and hostname. Return qulity of the address
824 /* do reverse name lookup, if hostname can not be found return ip-address */
850 "get_scanner_name: Forward lookup for %s succeeded, using as hostname\n", host));
1130 bjnp_poll_scanner (int devno, char type,char *hostname, char *user, SANE_Byte *status, int size)
1156 snprintf(user_host, (user_host_len /2) ,"%s %s", user, hostname);
1226 bjnp_send_job_details (int devno, char *hostname, char *user, char *title)
1247 charTo2byte (job->hostname, hostname, sizeof (job->hostname));
1872 /* return hostname if required */
2257 /* scanner found, get IP-address or hostname */
2288 * hostname = resolvable name or IP-address
2607 char hostname[256];
2618 gethostname (hostname, 32);
2619 hostname[32] = '\0';
2628 if ( (bjnp_poll_scanner (dn, 0, hostname, getusername (), buffer, *size ) != 0) ||
2629 (bjnp_poll_scanner (dn, 1, hostname, getusername (), buffer, *size ) != 0) )
2650 if ( (resp_len = bjnp_poll_scanner (dn, 2, hostname, getusername (), buffer, *size ) ) < 0 )
2670 if ( (resp_len = bjnp_poll_scanner (dn, 5, hostname, getusername (), buffer, *size ) ) < 0 )