11std::vector<out_message_t>
13 std::shared_ptr<irsol::server::ClientSession>
session,
17 if(!
state.running()) {
19 session->id(),
"Session is not listening to frames. Ignoring abort request.");
25 std::vector<out_message_t>
result;
CommandAbortHandler(std::shared_ptr< Context > ctx)
Constructs the CommandAbortHandler.
std::vector< out_message_t > process(std::shared_ptr< irsol::server::ClientSession > session, irsol::protocol::Command &&message) final override
Processes an abort command.
Generic handler base class for protocol messages.
Declaration of the CommandAbortHandler class.
#define IRSOL_NAMED_LOG_INFO(name,...)
Logs an info-level message using a named logger.
Common portability and diagnostic macros for the irsol library.
#define IRSOL_MAYBE_UNUSED
Suppresses compiler warnings about unused variables or parameters.
constexpr auto makeHandler(std::shared_ptr< Context > ctx, Args &&... args)
Constructs a handler instance of the given type.
Declaration of the ClientSession class.
Represents a command invocation in the protocol.
static Success from(const Assignment &msg, std::optional< irsol::types::protocol_value_t > overrideValue=std::nullopt)
Creates a success message from an Assignment.