MCPcopy Create free account
hub / github.com/SFML/SFML / resolveV6

Function resolveV6

test/TestUtilities/NetworkUtil.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::vector<sf::IpAddress> resolveV6(std::string_view hostname)
94{
95 auto addresses = sf::Dns::resolve(hostname).value_or(std::vector<sf::IpAddress>{});
96 addresses
97 .erase(std::remove_if(addresses.begin(), addresses.end(), [](const auto& address) { return !address.isV6(); }),
98 addresses.end());
99 return addresses;
100}

Callers 2

TcpSocket.test.cppFile · 0.85
Dns.test.cppFile · 0.85

Calls 4

eraseMethod · 0.80
isV6Method · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected