![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
Example custom handler for Assignment messages. More...
Public Member Functions | |
MyAssignmentHandler (std::shared_ptr< irsol::server::handlers::Context > ctx) | |
std::vector< irsol::server::handlers::out_message_t > | operator() (IRSOL_MAYBE_UNUSED const irsol::types::client_id_t &clientId, irsol::protocol::Assignment &&message) override |
![]() | |
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 | |
std::vector< irsol::server::handlers::out_message_t > | process (IRSOL_MAYBE_UNUSED std::shared_ptr< irsol::server::ClientSession > client, irsol::protocol::Assignment &&message) override |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< Context > | ctx |
Handler context (provides access to app and utilities). | |
|
inline |
Definition at line 26 of file main.cpp.
|
inlineoverride |
Overrides the base operator() as we skip the collection of the client's Session in this demo, which is the behavior of the base class.
Definition at line 32 of file main.cpp.
|
inlineoverrideprotected |
Definition at line 40 of file main.cpp.