|
ORE Studio 0.0.4
|
Abstract interface for handling messages from a subsystem. More...
#include <message_handler.hpp>


Public Member Functions | |
| virtual boost::asio::awaitable< std::expected< std::vector< std::byte >, error_code > > | handle_message (message_type type, std::span< const std::byte > payload, const std::string &remote_address)=0 |
| Handle a message and produce a response payload. | |
Abstract interface for handling messages from a subsystem.
Subsystems implement this interface to process their domain-specific messages. The handler is responsible for:
|
pure virtual |
Handle a message and produce a response payload.
| type | The message type being processed |
| payload | The raw message payload to deserialize and process |
| remote_address | The remote endpoint address (IP:port) of the client connection |
Implemented in accounts_message_handler, risk_message_handler, variability_message_handler, and subscription_handler.