Radix Relay
Hybrid mesh communications with Signal Protocol encryption
Loading...
Searching...
No Matches
radix_relay::core::command_handler< Bridge > Struct Template Reference

Handles typed command events and coordinates with subsystems. More...

#include <command_handler.hpp>

Classes

struct  out_queues_t
 

Public Types

using in_queue_t = async::async_queue< events::raw_command >
 

Public Member Functions

 command_handler (const std::shared_ptr< Bridge > &bridge, const out_queues_t &queues)
 Constructs a command handler with required subsystem queues.
 
template<events::Command T>
auto handle (const T &command) const -> void
 Handles a typed command event.
 
auto get_bridge () -> std::shared_ptr< Bridge >
 Returns the Signal Protocol bridge.
 

Detailed Description

template<concepts::signal_bridge Bridge>
struct radix_relay::core::command_handler< Bridge >

Handles typed command events and coordinates with subsystems.

Template Parameters
BridgeType satisfying the signal_bridge concept

Routes commands to appropriate subsystems (display, transport, session orchestrator) and interacts with the Signal Protocol bridge for cryptographic operations.

Definition at line 23 of file command_handler.hpp.

Member Typedef Documentation

◆ in_queue_t

template<concepts::signal_bridge Bridge>
using radix_relay::core::command_handler< Bridge >::in_queue_t = async::async_queue<events::raw_command>

Definition at line 26 of file command_handler.hpp.

Constructor & Destructor Documentation

◆ command_handler()

template<concepts::signal_bridge Bridge>
radix_relay::core::command_handler< Bridge >::command_handler ( const std::shared_ptr< Bridge > &  bridge,
const out_queues_t queues 
)
inlineexplicit

Constructs a command handler with required subsystem queues.

Parameters
bridgeSignal Protocol bridge for crypto operations
queuesOutput queues for subsystems

Definition at line 42 of file command_handler.hpp.

Member Function Documentation

◆ get_bridge()

template<concepts::signal_bridge Bridge>
auto radix_relay::core::command_handler< Bridge >::get_bridge ( ) -> std::shared_ptr<Bridge>
inline

Returns the Signal Protocol bridge.

Returns
Shared pointer to the bridge

Definition at line 60 of file command_handler.hpp.

◆ handle()

template<concepts::signal_bridge Bridge>
template<events::Command T>
auto radix_relay::core::command_handler< Bridge >::handle ( const T &  command) const -> void
inline

Handles a typed command event.

Template Parameters
TCommand type satisfying the Command concept
Parameters
commandThe command to handle

Definition at line 53 of file command_handler.hpp.


The documentation for this struct was generated from the following file: