|
ORE Studio 0.0.4
|
Message handler for accounts subsystem messages. More...
#include <accounts_message_handler.hpp>


Public Types | |
| using | handler_result = boost::asio::awaitable< std::expected< std::vector< std::byte >, comms::messaging::error_code > > |
Public Member Functions | |
| accounts_message_handler (database::context ctx, std::shared_ptr< variability::service::system_flags_service > system_flags, std::shared_ptr< comms::service::auth_session_service > sessions) | |
| Construct an accounts message handler. | |
| handler_result | handle_message (comms::messaging::message_type type, std::span< const std::byte > payload, const std::string &remote_address) override |
| Handle an accounts subsystem message. | |
Message handler for accounts subsystem messages.
Processes messages in the accounts subsystem range (0x2000-0x2FFF). Currently handles:
| accounts_message_handler | ( | database::context | ctx, |
| std::shared_ptr< variability::service::system_flags_service > | system_flags, | ||
| std::shared_ptr< comms::service::auth_session_service > | sessions | ||
| ) |
Construct an accounts message handler.
| ctx | Database context for repository access |
| system_flags | Shared system flags service for flag access |
| sessions | Shared auth session service for authentication |
|
overridevirtual |
Handle an accounts subsystem message.
| type | The message type (must be in range 0x2000-0x2FFF) |
| payload | The message payload |
| remote_address | The remote endpoint address of the client connection |
Implements message_handler.