ignore "Anonymous query through public resolver" errors
[ghsmtp.git] / IP.hpp
blob7a1416873b73bcec784415acc3fbc27580373541
1 #ifndef IP_DOT_HPP
2 #define IP_DOT_HPP
4 #include <string>
5 #include <string_view>
7 namespace IP {
8 bool is_private(std::string_view addr);
9 bool is_address(std::string_view addr);
10 bool is_address_literal(std::string_view addr);
11 std::string to_address_literal(std::string_view addr);
12 std::string_view as_address(std::string_view addr);
13 std::string reverse(std::string_view addr);
14 } // namespace IP
16 #endif // IP_DOT_HPP