bool backend_cluster::process_filters(const incoming_message& response) { auto filter_it = filters_.find(response.command()); if (filter_it == filters_.end()) return false; filter_it->second(response.data(), response.origin()); return true; }
outgoing_message::outgoing_message( const incoming_message& request, const data_chunk& data) : dest_(request.origin()), command_(request.command()), id_(request.id()), data_(data) { }