1#include <xrpl/beast/net/IPAddressConversion.h>
2#include <xrpl/beast/net/IPEndpoint.h>
4#include <boost/asio/ip/address.hpp>
5#include <boost/asio/ip/tcp.hpp>
17from_asio(boost::asio::ip::tcp::endpoint
const& endpoint)
22boost::asio::ip::address
28boost::asio::ip::tcp::endpoint
31 return boost::asio::ip::tcp::endpoint{endpoint.
address(), endpoint.
port()};
A version-independent IP address and port combination.
Address const & address() const
Returns the address portion of this endpoint.
Port port() const
Returns the port number on the endpoint.
boost::asio::ip::address to_asio_address(Endpoint const &endpoint)
Convert to asio::ip::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.