![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Generic handler base class for protocol messages. More...
#include <base.hpp>
Public Member Functions | |
virtual std::vector< out_message_t > | operator() (const irsol::types::client_id_t &clientId, T &&message) |
Invokes the handler for a given client and message. | |
Protected Member Functions | |
HandlerBase (std::shared_ptr< Context > ctx) | |
Constructs the handler base. | |
virtual std::vector< out_message_t > | process (std::shared_ptr< irsol::server::ClientSession > session, T &&message)=0 |
Processes the protocol message for the given session. | |
Protected Attributes | |
std::shared_ptr< Context > | ctx |
Handler context (provides access to app and utilities). | |
Generic handler base class for protocol messages.
T | Protocol message type (Assignment, Inquiry, Command). |
Provides the interface for processing protocol messages for a given client session.
|
inlineprotected |
Constructs the handler base.
ctx | Handler context. |
Definition at line 68 of file base.hpp.
|
inlinevirtual |
Invokes the handler for a given client and message.
clientId | The client identifier. |
message | The protocol message. |
Definition at line 50 of file base.hpp.
|
protectedpure virtual |
Processes the protocol message for the given session.
session | The client session. |
message | The protocol message. |
Implemented in irsol::server::handlers::LambdaHandler< T, >.
|
protected |