Home | History | Annotate | Download | only in base

Lines Matching refs:ai

410   struct addrinfo* ai = &static_ai;
411 ai->ai_socktype = SOCK_STREAM;
412 memset(ai, 0, sizeof(static_ai));
414 ai->ai_family = AF_INET;
415 ai->ai_addrlen = sizeof(static_addr4);
420 addr4->sin_family = ai->ai_family;
423 ai->ai_addr = (sockaddr*)addr4;
424 return ai;
434 struct addrinfo* ai = &static_ai;
435 ai->ai_socktype = SOCK_STREAM;
436 memset(ai, 0, sizeof(static_ai));
438 ai->ai_family = AF_INET6;
439 ai->ai_addrlen = sizeof(static_addr6);
444 addr6->sin6_family = ai->ai_family;
447 ai->ai_addr = (sockaddr*)addr6;
448 return ai;
1414 const addrinfo* ai = GetIPv4Address(tests[i].addr, 80);
1415 std::string result = NetAddressToString(ai);
1431 const addrinfo* ai = GetIPv6Address(tests[i].addr, 80);
1432 std::string result = NetAddressToString(ai);
1442 const addrinfo* ai = GetIPv4Address(addr, 166);
1443 std::string result = NetAddressToStringWithPort(ai);
1452 const addrinfo* ai = GetIPv6Address(addr, 361);
1453 std::string result = NetAddressToStringWithPort(ai);