Lines Matching defs:hint
42 struct addrinfo hint;
44 bzero(&hint, sizeof(struct addrinfo));
45 hint.ai_flags = AI_PASSIVE;
46 hint.ai_family = AF_UNSPEC;
48 int n = getaddrinfo("127.0.0.1", nullptr, &hint, &res);
61 struct addrinfo hint;
63 bzero(&hint, sizeof(struct addrinfo));
64 hint.ai_flags = AI_ALL; // Find IPv4 and IPV6
65 hint.ai_family = AF_UNSPEC; // not specified
67 int n = getaddrinfo("127.0.0.1", nullptr, &hint, &res);
80 struct addrinfo hint;
82 bzero(&hint, sizeof(struct addrinfo));
83 hint.ai_flags = AI_V4MAPPED; // If IPV6 is not found, return IPv4 mapped in ipv6 format
84 hint.ai_family = AF_INET6; // IPv6 Internet Domain
86 int n = getaddrinfo("127.0.0.1", nullptr, &hint, &res);
99 struct addrinfo hint;
101 bzero(&hint, sizeof(struct addrinfo));
102 hint.ai_flags = AI_V4MAPPED; // If IPV6 is not found, return IPv4 mapped in ipv6 format
103 hint.ai_family = AF_UNSPEC; // not specified
105 int n = getaddrinfo("127.0.0.1", nullptr, &hint, &res);
118 struct addrinfo hint;
120 bzero(&hint, sizeof(struct addrinfo));
121 hint.ai_flags = AI_ADDRCONFIG; // Query the configured address type IPV4 or IPV6
122 hint.ai_family = AF_UNSPEC; // not specified
124 int n = getaddrinfo("127.0.0.1", nullptr, &hint, &res);
137 struct addrinfo hint;
139 bzero(&hint, sizeof(struct addrinfo));
140 hint.ai_flags = AI_NUMERICSERV;
141 hint.ai_family = AF_UNSPEC;
143 int n = getaddrinfo("127.0.0.1", nullptr, &hint, &res);