AceSmartSoft API Documentation
|
Server part of one-way communication pattern. More...
#include <smartSend.hh>
Public Types | |
using | ISendServerBase = Smart::ISendServerPattern< C > |
Public Member Functions | |
SendServer (SmartComponent *component, const std::string &service, ISendServerHandlerPtr handler=nullptr) | |
constructor. More... | |
virtual | ~SendServer () |
Destructor. More... | |
Server part of one-way communication pattern.
Template parameters:
Demonstrated in sixth example
using SmartACE::SendServer< C >::ISendServerBase = Smart::ISendServerPattern<C> |
SmartACE::SendServer< C >::SendServer | ( | SmartComponent * | component, |
const std::string & | service, | ||
ISendServerHandlerPtr | handler = nullptr |
||
) |
constructor.
Note that a handler has to be supplied. Without a handler, the SendServer could not accept a command.
(Currently exception not thrown)
component | management class of the component |
service | name of the service |
handler | an optional pointer to the send-handler |
|
virtual |
Destructor.
Properly disconnects all service requestors in case of destruction.