Home | History | Annotate | Download | only in netcat

Lines Matching defs:host

126 	char *host, *uport;
139 host = NULL;
294 host = argv[0];
300 host = NULL;
302 host = argv[0];
375 s = unix_bind(host);
377 s = unix_listen(host);
383 s = local_listen(host, uport, hints);
429 if ((s = unix_connect(host)) > 0 && !zflag) {
452 s = socks_connect(host, portlist[i], hints,
457 s = remote_connect(host, portlist[i], hints);
483 "succeeded!\n", host, portlist[i],
586 * Returns a socket connected to a remote host. Properly binds to a local
590 remote_connect(const char *host, const char *port, struct addrinfo hints)
595 if ((error = getaddrinfo(host, port, &hints, &res)))
639 warn("connect to %s port %s (%s) failed", host, port,
694 local_listen(char *host, char *port, struct addrinfo hints)
707 if (host == NULL && hints.ai_family == AF_UNSPEC)
710 if ((error = getaddrinfo(host, port, &hints, &res)))