mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
adds support for message_handler
This commit is contained in:
@@ -685,7 +685,10 @@ void connection<config>::handle_read_frame(const lib::error_code& ec,
|
||||
std::cout << "null message from m_processor" << std::endl;
|
||||
} else if (!is_control(msg->get_opcode())) {
|
||||
// data message, dispatch to user
|
||||
m_handler->on_message(type::shared_from_this(), msg);
|
||||
//m_handler->on_message(type::shared_from_this(), msg);
|
||||
if (m_message_handler) {
|
||||
m_message_handler(m_connection_hdl, msg);
|
||||
}
|
||||
} else {
|
||||
process_control_frame(msg);
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ endpoint<connection,config>::create_connection() {
|
||||
con->set_interrupt_handler(m_interrupt_handler);
|
||||
con->set_http_handler(m_http_handler);
|
||||
con->set_validate_handler(m_validate_handler);
|
||||
con->set_message_handler(m_message_handler);
|
||||
|
||||
con->set_termination_handler(
|
||||
lib::bind(
|
||||
|
||||
Reference in New Issue
Block a user