AceSmartSoft API Documentation
|
Handler Class for SendServer for incoming commands. More...
#include <smartSend.hh>
Public Member Functions | |
virtual | ~SendServerHandler ()=default |
virtual void | handleSend (const C &cmd)=0 |
Handler method for an incoming command. More... | |
Handler Class for SendServer for incoming commands.
Used by the SendServer to handle incoming commands. The user should provide the handleSend() method by subclassing and register an instance of this handler class with the SendServer.
|
virtualdefault |
|
pure virtual |
Handler method for an incoming command.
This method is called by the communication pattern every time a new command is received. It must be provided by the component developer to handle incoming commands. Since the method is executed by the communication thread, it must be very fast and non-blocking.
Usually the command will be inserted into a queue and another working thread processes the command. The ThreadedSendHandler decorator provides such a processing pattern.
cmd | command object (Communication Object) |