20 #ifndef BEAST_NET_IPADDRESSCONVERSION_H_INCLUDED
21 #define BEAST_NET_IPADDRESSCONVERSION_H_INCLUDED
23 #include <ripple/beast/net/IPEndpoint.h>
27 #include <boost/asio.hpp>
35 Endpoint
from_asio (boost::asio::ip::address
const& address);
38 Endpoint
from_asio (boost::asio::ip::tcp::endpoint
const& endpoint);
static IP::Endpoint from_asio(boost::asio::ip::tcp::endpoint const &endpoint)
static boost::asio::ip::address to_asio_address(IP::Endpoint const &address)
static IP::Endpoint from_asio(boost::asio::ip::address const &address)
boost::asio::ip::tcp::endpoint to_asio_endpoint(Endpoint const &endpoint)
Convert to asio::ip::tcp::endpoint.
Endpoint from_asio(boost::asio::ip::address const &address)
Convert to Endpoint.
boost::asio::ip::address to_asio_address(Endpoint const &endpoint)
Convert to asio::ip::address.
IPAddressConversion()=default
A version-independent IP address and port combination.
static boost::asio::ip::tcp::endpoint to_asio_endpoint(IP::Endpoint const &address)