Lines Matching refs:hints
134 struct addrinfo hints; in main() local
284 (void) memset(&hints, 0, sizeof (struct addrinfo)); in main()
285 hints.ai_family = family; in main()
286 hints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; in main()
287 hints.ai_protocol = uflag ? IPPROTO_UDP : IPPROTO_TCP; in main()
289 hints.ai_flags |= AI_NUMERICHOST; in main()
338 s = local_listen(host, uport, hints); in main()
416 s = remote_connect(host, port, hints); in main()
548 remote_connect(const char *host, const char *port, struct addrinfo hints) in remote_connect() argument
553 if ((error = getaddrinfo(host, port, &hints, &res))) in remote_connect()
619 local_listen(char *host, char *port, struct addrinfo hints) in local_listen() argument
626 hints.ai_flags |= AI_PASSIVE; in local_listen()
628 if ((error = getaddrinfo(host, port, &hints, &res))) in local_listen()