#include "node.hpp" #include "logging.hpp" using namespace boost::asio::ip; Node::Node(tcp::socket&& socket) : client(std::move(socket)) {} void Node::async_connect(std::string next_host, std::string next_port, std::function on_connect) { client.async_connect(next_host, next_port, on_connect); } void Node::close() { client.close(); }