Home | History | Annotate | Download | only in netcat

Lines Matching full:hints

127 	struct addrinfo hints;
331 memset(&hints, 0, sizeof(struct addrinfo));
332 hints.ai_family = family;
333 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM;
334 hints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP;
336 hints.ai_flags |= AI_NUMERICHOST;
383 s = local_listen(host, uport, hints);
452 s = socks_connect(host, portlist[i], hints,
457 s = remote_connect(host, portlist[i], hints);
590 remote_connect(const char *host, const char *port, struct addrinfo hints)
595 if ((error = getaddrinfo(host, port, &hints, &res)))
694 local_listen(char *host, char *port, struct addrinfo hints)
701 hints.ai_flags |= AI_PASSIVE;
707 if (host == NULL && hints.ai_family == AF_UNSPEC)
708 hints.ai_family = AF_INET;
710 if ((error = getaddrinfo(host, port, &hints, &res)))