|
xrpld
|
Classes | |
| class | Endpoint |
| A version-independent IP address and port combination. More... | |
| class | IPEndpoint_test |
Typedefs | |
| using | Address = boost::asio::ip::address |
| using | AddressV4 = boost::asio::ip::address_v4 |
| using | AddressV6 = boost::asio::ip::address_v6 |
| using | Port = std::uint16_t |
Functions | |
| std::string | to_string (Address const &addr) |
| Returns the address represented as a string. | |
| bool | isLoopback (Address const &addr) |
| Returns true if this is a loopback address. | |
| bool | isUnspecified (Address const &addr) |
| Returns true if the address is unspecified. | |
| bool | isMulticast (Address const &addr) |
| Returns true if the address is a multicast address. | |
| bool | isPrivate (Address const &addr) |
| Returns true if the address is a private unroutable address. | |
| bool | isPublic (Address const &addr) |
| Returns true if the address is a public routable address. | |
| Endpoint | fromAsio (boost::asio::ip::address const &address) |
| Convert to Endpoint. | |
| Endpoint | fromAsio (boost::asio::ip::tcp::endpoint const &endpoint) |
| Convert to Endpoint. | |
| boost::asio::ip::address | toAsioAddress (Endpoint const &endpoint) |
| Convert to asio::ip::address. | |
| boost::asio::ip::tcp::endpoint | toAsioEndpoint (Endpoint const &endpoint) |
| Convert to asio::ip::tcp::endpoint. | |
| bool | isPrivate (AddressV4 const &addr) |
| Returns true if the address is a private unroutable address. | |
| bool | isPublic (AddressV4 const &addr) |
| Returns true if the address is a public routable address. | |
| char | getClass (AddressV4 const &address) |
| Returns the address class for the given address. | |
| bool | isPrivate (AddressV6 const &addr) |
| Returns true if the address is a private unroutable address. | |
| bool | isPublic (AddressV6 const &addr) |
| Returns true if the address is a public routable address. | |
| bool | isLoopback (Endpoint const &endpoint) |
| Returns true if the endpoint is a loopback address. | |
| bool | isUnspecified (Endpoint const &endpoint) |
| Returns true if the endpoint is unspecified. | |
| bool | isMulticast (Endpoint const &endpoint) |
| Returns true if the endpoint is a multicast address. | |
| bool | isPrivate (Endpoint const &endpoint) |
| Returns true if the endpoint is a private unroutable address. | |
| bool | isPublic (Endpoint const &endpoint) |
| Returns true if the endpoint is a public routable address. | |
| std::string | to_string (Endpoint const &endpoint) |
| Returns the endpoint represented as a string. | |
| template<typename OutputStream> | |
| OutputStream & | operator<< (OutputStream &os, Endpoint const &endpoint) |
| Output stream conversion. | |
| std::istream & | operator>> (std::istream &is, Endpoint &endpoint) |
| Input stream conversion. | |
| bool | operator== (Endpoint const &lhs, Endpoint const &rhs) |
| bool | operator< (Endpoint const &lhs, Endpoint const &rhs) |
| BEAST_DEFINE_TESTSUITE (IPEndpoint, beast, beast) | |
| Endpoint | randomEP (bool v4=true) |
| using beast::ip::Address = boost::asio::ip::address |
Definition at line 20 of file IPAddress.h.
| using beast::ip::AddressV4 = boost::asio::ip::address_v4 |
Definition at line 7 of file IPAddressV4.h.
| using beast::ip::AddressV6 = boost::asio::ip::address_v6 |
Definition at line 7 of file IPAddressV6.h.
| using beast::ip::Port = std::uint16_t |
Definition at line 18 of file IPEndpoint.h.
| std::string beast::ip::to_string | ( | Address const & | addr | ) |
Returns the address represented as a string.
Definition at line 26 of file IPAddress.h.
| bool beast::ip::isLoopback | ( | Address const & | addr | ) |
Returns true if this is a loopback address.
Definition at line 35 of file IPAddress.h.
| bool beast::ip::isUnspecified | ( | Address const & | addr | ) |
Returns true if the address is unspecified.
Definition at line 44 of file IPAddress.h.
| bool beast::ip::isMulticast | ( | Address const & | addr | ) |
Returns true if the address is a multicast address.
Definition at line 53 of file IPAddress.h.
| bool beast::ip::isPrivate | ( | Address const & | addr | ) |
Returns true if the address is a private unroutable address.
Definition at line 62 of file IPAddress.h.
| bool beast::ip::isPublic | ( | Address const & | addr | ) |
Returns true if the address is a public routable address.
Definition at line 71 of file IPAddress.h.
| Endpoint beast::ip::fromAsio | ( | boost::asio::ip::address const & | address | ) |
Convert to Endpoint.
The port is set to zero.
Definition at line 11 of file IPAddressConversion.cpp.
| Endpoint beast::ip::fromAsio | ( | boost::asio::ip::tcp::endpoint const & | endpoint | ) |
Convert to Endpoint.
Definition at line 17 of file IPAddressConversion.cpp.
| boost::asio::ip::address beast::ip::toAsioAddress | ( | Endpoint const & | endpoint | ) |
Convert to asio::ip::address.
The port is ignored.
Definition at line 23 of file IPAddressConversion.cpp.
| boost::asio::ip::tcp::endpoint beast::ip::toAsioEndpoint | ( | Endpoint const & | endpoint | ) |
Convert to asio::ip::tcp::endpoint.
Definition at line 29 of file IPAddressConversion.cpp.
| bool beast::ip::isPrivate | ( | AddressV4 const & | addr | ) |
Returns true if the address is a private unroutable address.
Definition at line 6 of file IPAddressV4.cpp.
| bool beast::ip::isPublic | ( | AddressV4 const & | addr | ) |
Returns true if the address is a public routable address.
Definition at line 15 of file IPAddressV4.cpp.
| char beast::ip::getClass | ( | AddressV4 const & | address | ) |
Returns the address class for the given address.
Definition at line 59 of file IPAddressV4.cpp.
| bool beast::ip::isPrivate | ( | AddressV6 const & | addr | ) |
Returns true if the address is a private unroutable address.
Definition at line 10 of file IPAddressV6.cpp.
| bool beast::ip::isPublic | ( | AddressV6 const & | addr | ) |
Returns true if the address is a public routable address.
Definition at line 21 of file IPAddressV6.cpp.
| bool beast::ip::isLoopback | ( | Endpoint const & | endpoint | ) |
Returns true if the endpoint is a loopback address.
Definition at line 151 of file IPEndpoint.h.
| bool beast::ip::isUnspecified | ( | Endpoint const & | endpoint | ) |
Returns true if the endpoint is unspecified.
Definition at line 160 of file IPEndpoint.h.
| bool beast::ip::isMulticast | ( | Endpoint const & | endpoint | ) |
Returns true if the endpoint is a multicast address.
Definition at line 169 of file IPEndpoint.h.
| bool beast::ip::isPrivate | ( | Endpoint const & | endpoint | ) |
Returns true if the endpoint is a private unroutable address.
Definition at line 178 of file IPEndpoint.h.
| bool beast::ip::isPublic | ( | Endpoint const & | endpoint | ) |
Returns true if the endpoint is a public routable address.
Definition at line 187 of file IPEndpoint.h.
| std::string beast::ip::to_string | ( | Endpoint const & | endpoint | ) |
Returns the endpoint represented as a string.
Definition at line 198 of file IPEndpoint.h.
| OutputStream & beast::ip::operator<< | ( | OutputStream & | os, |
| Endpoint const & | endpoint ) |
Output stream conversion.
Definition at line 207 of file IPEndpoint.h.
| std::istream & beast::ip::operator>> | ( | std::istream & | is, |
| Endpoint & | endpoint ) |
Input stream conversion.
Definition at line 89 of file IPEndpoint.cpp.
Definition at line 71 of file IPEndpoint.cpp.
Definition at line 76 of file IPEndpoint.cpp.
| Endpoint beast::ip::randomEP | ( | bool | v4 = true | ) |
Definition at line 13 of file IPEndpointCommon.h.