DDS  ver. 2.0
CommanderChannel.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__AGENT__CCommanderChannel__
7 #define __DDS__AGENT__CCommanderChannel__
8 
9 // DDS
10 #include "ClientChannelImpl.h"
11 #include "SMFWChannel.h"
12 
13 namespace dds
14 {
15  namespace agent_cmd
16  {
17  class CCommanderChannel : public protocol_api::CClientChannelImpl<CCommanderChannel>
18  {
19  public:
20  CCommanderChannel(boost::asio::io_service& _service, uint64_t _ProtocolHeaderID);
21 
22  public:
24 
26 
27  CSMFWChannel::weakConnectionPtr_t getSMFWChannel();
28 
29  private:
30  bool on_rawMessage(protocol_api::CProtocolMessage::protocolMessagePtr_t _currentMsg);
31 
32  uint16_t m_connectionAttempts;
33  CSMFWChannel::connectionPtr_t m_SMFWChannel;
34  };
35  }
36 }
37 
38 #endif /* defined(__DDS__AGENT__CCommanderChannel__) */
std::weak_ptr< CSMFWChannel > weakConnectionPtr_t
Definition: BaseSMChannelImpl.h:163
#define REGISTER_DEFAULT_REMOTE_ID_STRING
Definition: BaseChannelImpl.h:171
Definition: CommanderChannel.h:17
std::shared_ptr< CSMFWChannel > connectionPtr_t
Definition: BaseSMChannelImpl.h:162
Definition: dds-agent/src/AgentConnectionManager.h:18
CCommanderChannel(boost::asio::io_service &_service, uint64_t _ProtocolHeaderID)
Definition: CommanderChannel.cpp:22
#define RAW_MESSAGE_HANDLER(theClass, func)
Definition: BaseChannelImpl.h:146
Definition: BaseChannelImpl.h:41
std::shared_ptr< CProtocolMessage > protocolMessagePtr_t
Definition: ProtocolMessage.h:80