5 #ifndef __DDS__GenericChannel__ 6 #define __DDS__GenericChannel__ 13 namespace agent_cmd_cmd
17 CGenericChannel(boost::asio::io_service& _service, uint64_t _protocolHeaderID = 0)
20 registerHandler<protocol_api::EChannelEvents::OnRemoteEndDissconnected>(
23 <<
"The DDS commander [" << this->
socket().remote_endpoint().address().to_string()
24 <<
"] has closed the connection.";
27 registerHandler<protocol_api::EChannelEvents::OnHandshakeOK>(
33 pushMsg<protocol_api::cmdGET_LOG>();
41 pushMsg<protocol_api::cmdUPDATE_KEY>(cmd);
60 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:56
Definition: BaseEventHandlersImpl.h:48
Definition: UpdateKeyCmd.h:14
#define REGISTER_DEFAULT_REMOTE_ID_STRING
Definition: BaseChannelImpl.h:171
dds-agent-cmd's container of options
Definition: dds-agent-cmd/src/Options.h:57
Definition: ProtocolDef.h:19
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:66
Definition: ProtocolCommands.h:30
#define LOG(severity)
Definition: Logger.h:54
Definition: ProtocolCommands.h:59
std::string m_sValue
Definition: UpdateKeyCmd.h:32
Definition: ProtocolCommands.h:33
std::string m_sUpdKey_value
Definition: dds-agent-cmd/src/Options.h:70
#define END_MSG_MAP()
Definition: BaseChannelImpl.h:134
Definition: dds-agent/src/AgentConnectionManager.h:18
Definition: GenericChannel.h:15
Definition: BaseChannelImpl.h:41
std::string m_sKey
Definition: UpdateKeyCmd.h:31
EAgentCmdType m_agentCmd
Definition: dds-agent-cmd/src/Options.h:68
boost::asio::ip::tcp::socket & socket()
Definition: BaseChannelImpl.h:304
std::string m_sUpdKey_key
Definition: dds-agent-cmd/src/Options.h:69
#define BEGIN_MSG_MAP(theClass)
Definition: BaseChannelImpl.h:49
void stop()
Definition: BaseChannelImpl.h:296