Lines Matching refs:host
133 char *host, *uport, *proxy;
145 host = NULL;
244 host = argv[0];
250 host = NULL;
254 host = argv[0];
325 if (host == NULL)
327 s = unix_listen(host);
338 s = local_listen(host, uport, hints);
389 if ((s = unix_connect(host)) > 0 && !zflag) {
412 s = socks_connect(host, port,
416 s = remote_connect(host, port, hints);
442 host, port, uflag ? "udp" : "tcp",
544 * Returns a socket connected to a remote host. Properly binds to a local
548 remote_connect(const char *host, const char *port, struct addrinfo hints)
553 if ((error = getaddrinfo(host, port, &hints, &res)))
598 warn("connect to %s [host %s] (%s) failed",
601 host, uflag ? "udp" : "tcp");
619 local_listen(char *host, char *port, struct addrinfo hints)
628 if ((error = getaddrinfo(host, port, &hints, &res)))