27 : std::runtime_error(msg + (ec ?
" (" + ec.message() +
")" :
""))
34 BOOST_ASSERT(receiveCallback !=
nullptr);
Error(const boost::system::error_code &code, const std::string &msg)
std::function< void(const Block &)> ReceiveCallback
virtual void connect(boost::asio::io_context &ioCtx, ReceiveCallback receiveCallback)
Asynchronously open the connection.
ReceiveCallback m_receiveCallback
boost::asio::io_context * m_ioCtx