20 #include <ripple/beast/net/IPAddressConversion.h>
32 from_asio(boost::asio::ip::tcp::endpoint
const& endpoint)
37 boost::asio::ip::address
43 boost::asio::ip::tcp::endpoint
46 return boost::asio::ip::tcp::endpoint{endpoint.
address(), endpoint.
port()};
Address const & address() const
Returns the address portion of this endpoint.
boost::asio::ip::tcp::endpoint to_asio_endpoint(Endpoint const &endpoint)
Convert to asio::ip::tcp::endpoint.
Port port() const
Returns the port number on the 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.
A version-independent IP address and port combination.