MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / IsIPV6Address

Method IsIPV6Address

src/base/AFSocketFunc.hpp:233–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 }
232
233 static bool IsIPV6Address(const string& ip)
234 {
235 struct sockaddr_in6 sa;
236 return inet_pton(AF_INET6, ip.c_str(), &(sa.sin6_addr)) != 0;
237 }
238
239 static bool GetHost(bool need_intranet_ip, const std::string& host, bool& is_ip_v6, std::string& ip)
240 {

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected