xrpld
Loading...
Searching...
No Matches
IPAddressV4.h
1#pragma once
2
3#include <boost/asio/ip/address_v4.hpp>
4
5namespace beast::ip {
6
7using AddressV4 = boost::asio::ip::address_v4;
8
12bool
13isPrivate(AddressV4 const& addr);
14
18bool
19isPublic(AddressV4 const& addr);
20
25char
26getClass(AddressV4 const& address);
27
28} // namespace beast::ip
char getClass(AddressV4 const &address)
Returns the address class for the given address.
bool isPublic(Address const &addr)
Returns true if the address is a public routable address.
Definition IPAddress.h:71
boost::asio::ip::address_v4 AddressV4
Definition IPAddressV4.h:7
bool isPrivate(Address const &addr)
Returns true if the address is a private unroutable address.
Definition IPAddress.h:62