rippled
Loading...
Searching...
No Matches
IPAddressV4.h
1#pragma once
2
3#include <xrpl/beast/hash/hash_append.h>
4
5#include <boost/asio/ip/address_v4.hpp>
6
7namespace beast {
8namespace IP {
9
10using AddressV4 = boost::asio::ip::address_v4;
11
13bool
14is_private(AddressV4 const& addr);
15
17bool
18is_public(AddressV4 const& addr);
19
23char
24get_class(AddressV4 const& address);
25
26} // namespace IP
27} // namespace beast
char get_class(AddressV4 const &address)
Returns the address class for the given address.
bool is_public(Address const &addr)
Returns true if the address is a public routable address.
Definition IPAddress.h:58
boost::asio::ip::address_v4 AddressV4
Definition IPAddressV4.h:10
bool is_private(Address const &addr)
Returns true if the address is a private unroutable address.
Definition IPAddress.h:51