1#ifndef BEAST_NET_IPADDRESS_H_INCLUDED 
    2#define BEAST_NET_IPADDRESS_H_INCLUDED 
    4#include <xrpl/beast/hash/hash_append.h> 
    5#include <xrpl/beast/hash/uhash.h> 
    6#include <xrpl/beast/net/IPAddressV4.h> 
    7#include <xrpl/beast/net/IPAddressV6.h> 
    8#include <xrpl/beast/utility/instrumentation.h> 
   10#include <boost/asio/ip/address.hpp> 
   11#include <boost/functional/hash.hpp> 
   26    return addr.to_string();
 
 
   33    return addr.is_loopback();
 
 
   40    return addr.is_unspecified();
 
 
   47    return addr.is_multicast();
 
 
 
   68template <
class Hasher>
 
   75    else if (addr.is_v6())
 
   80        UNREACHABLE(
"beast::hash_append : invalid address type");
 
 
   95        return ::beast::uhash<>{}(addr);
 
 
 
 
bool is_multicast(Address const &addr)
Returns true if the address is a multicast address.
 
bool is_loopback(Address const &addr)
Returns true if this is a loopback address.
 
bool is_public(Address const &addr)
Returns true if the address is a public routable address.
 
bool is_unspecified(Address const &addr)
Returns true if the address is unspecified.
 
boost::asio::ip::address Address
 
bool is_private(Address const &addr)
Returns true if the address is a private unroutable address.
 
std::string to_string(Address const &addr)
Returns the address represented as a string.
 
std::enable_if_t< is_contiguously_hashable< T, Hasher >::value > hash_append(Hasher &h, T const &t) noexcept
Logically concatenate input data to a Hasher.
 
std::size_t operator()(::beast::IP::Address const &addr) const