6 #ifndef DDS_ClientChannelImpl_h 7 #define DDS_ClientChannelImpl_h 17 namespace protocol_api
20 class CClientChannelImpl :
public CBaseChannelImpl<T>
23 typedef std::function<void(T*)> handlerEventFunction_t;
28 uint64_t _protocolHeaderID)
33 this->
template registerHandler<cmdREPLY_HANDSHAKE_OK>(
41 this->
template pushMsg<cmdUNKNOWN>(_sender.
m_ID);
48 this->
template registerHandler<cmdREPLY_HANDSHAKE_ERR>(
51 LOG(
MiscCommon::info) <<
"Handshake failed with the following error: " << _attachment->m_sMsg;
74 void connect(boost::asio::ip::tcp::resolver::iterator _endpoint_iterator)
76 m_endpoint_iterator = _endpoint_iterator;
77 boost::asio::async_connect(
80 [
this](boost::system::error_code ec, boost::asio::ip::tcp::resolver::iterator) {
107 boost::asio::ip::tcp::resolver::iterator m_endpoint_iterator;
bool m_isHandshakeOK
Definition: BaseChannelImpl.h:988
std::string m_sSID
Definition: VersionCmd.h:25
Definition: BaseEventHandlersImpl.h:48
EChannelType
Definition: ProtocolDef.h:15
EChannelType m_channelType
Definition: BaseChannelImpl.h:989
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:64
std::string m_sessionID
Definition: BaseChannelImpl.h:990
#define LOG(severity)
Definition: Logger.h:56
Definition: VersionCmd.h:17
void start()
Definition: BaseChannelImpl.h:307
Definition: AgentConnectionManager.h:13
uint16_t m_version
Session ID.
Definition: VersionCmd.h:26
Definition: BaseChannelImpl.h:224
Definition: BaseChannelImpl.h:40
void reconnect()
Definition: ClientChannelImpl.h:69
uint16_t m_channelType
Definition: VersionCmd.h:27
boost::asio::ip::tcp::socket & socket()
Definition: BaseChannelImpl.h:326
uint64_t m_ID
Definition: BaseEventHandlersImpl.h:50
void connect(boost::asio::ip::tcp::resolver::iterator _endpoint_iterator)
Definition: ClientChannelImpl.h:74
void stop()
Definition: BaseChannelImpl.h:318
uint64_t m_protocolHeaderID
Definition: BaseChannelImpl.h:991