5 #ifndef __DDS__GenericChannel__ 6 #define __DDS__GenericChannel__ 13 namespace agent_cmd_cmd
23 <<
"The DDS commander [" << this->
socket().remote_endpoint().address().to_string()
24 <<
"] has closed the connection.";
30 case EAgentCmdType::GETLOG:
31 LOG(MiscCommon::log_stdout) <<
"Requesting log files from agents...";
32 pushMsg<protocol_api::cmdGET_LOG>();
34 case EAgentCmdType::UPDATE_KEY:
36 LOG(MiscCommon::log_stdout) <<
"Sending key update command...";
37 protocol_api::SUpdateKeyCmd cmd;
38 cmd.m_sKey = m_options.m_sUpdKey_key;
39 cmd.m_sValue = m_options.m_sUpdKey_value;
40 pushMsg<protocol_api::cmdUPDATE_KEY>(cmd);
59 void setOptions(const
SOptions& _options)
BEGIN_MSG_MAP(CGenericChannel) MESSAGE_HANDLER(dds MESSAGE_HANDLER(dds::protocol_api::cmdSHUTDOWN, on_cmdSHUTDOWN) MESSAGE_HANDLER(dds
Definition: GenericChannel.h:55
#define REGISTER_DEFAULT_REMOTE_ID_STRING
Definition: BaseChannelImpl.h:133
dds-agent-cmd's container of options
Definition: dds-agent-cmd/src/Options.h:57
Definition: BaseChannelImpl.h:148
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:65
Definition: ProtocolCommands.h:29
#define LOG(severity)
Definition: Logger.h:54
Definition: ProtocolCommands.h:58
Definition: ProtocolCommands.h:32
Definition: ChannelEventsImpl.h:21
#define END_MSG_MAP()
Definition: BaseChannelImpl.h:122
Definition: dds-agent/src/AgentConnectionManager.h:16
connection_t subscribeOnEvent(EChannelEvents _type, typename signal_t::slot_function_type _subscriber)
Definition: ChannelEventsImpl.h:45
Definition: GenericChannel.h:15
Definition: BaseChannelImpl.h:40
EAgentCmdType m_agentCmd
Definition: dds-agent-cmd/src/Options.h:67
boost::asio::ip::tcp::socket & socket()
Definition: BaseChannelImpl.h:265
Definition: ChannelEventsImpl.h:20
#define BEGIN_MSG_MAP(theClass)
Definition: BaseChannelImpl.h:46
void stop()
Definition: BaseChannelImpl.h:257