Lines Matching defs:hints
349 struct addrinfo hints;
356 memset(&hints, 0, sizeof(hints));
357 hints.ai_family = ipv6 ? AF_INET6 : AF_INET;
358 hints.ai_socktype = SOCK_STREAM;
359 hints.ai_flags = AI_PASSIVE;
361 if (getaddrinfo(NULL, port, &hints, &result) < 0) {
434 struct addrinfo hints;
441 memset(&hints, 0, sizeof(hints));
442 hints.ai_family = AF_UNSPEC;
443 hints.ai_socktype = SOCK_STREAM;
444 hints.ai_flags = AI_PASSIVE;
446 if (getaddrinfo(server, port, &hints, &result) < 0) {