Lines Matching refs:host
108 sock_connect(int sock, char *host, int timeout)
122 * Get the host address and port number to connect to.
124 if (host == NULL) {
132 if ((hp = getipnodebyname(host, AF_INET6, AI_DEFAULT,
140 if ((hp = gethostbyname(host)) == NULL) {
300 char host[BUFSIZ];
303 if (gethostname(host, sizeof (host)) != 0)
314 if (strncmp(++ptr, host, strlen(host)) != 0) {
363 if (strncmp(&mod_ptr[6], host, strlen(host))
455 char *host = NULL;
471 host = ptr;
472 syslog(LOG_DEBUG, "hostname: %s\n", host);
479 if (send_lpd_message(sock, "\002%d cfA%.3d%s\n", len, id, host) < 0)
662 fprintf(stderr, "usage:\t%s -H host [-t timeout] -s queue control ]\n",
664 fprintf(stderr, "\t%s -H host [-t timeout] -c queue [user|job ...]\n",
666 fprintf(stderr, "\t%s -H host [-t timeout] -q queue [user|job ...]\n",
686 char *host = NULL, *queue = NULL;
736 host = optarg;
765 if ((host == NULL) || (queue == NULL) || (timeout < 0) ||
788 if ((fd = sock_connect(fd, host, timeout)) < 0)