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