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