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:966
std::string m_sSID
Definition: VersionCmd.h:25
Definition: BaseEventHandlersImpl.h:48
EChannelType
Definition: ProtocolDef.h:15
EChannelType m_channelType
Definition: BaseChannelImpl.h:967
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:66
std::string m_sessionID
Definition: BaseChannelImpl.h:968
#define LOG(severity)
Definition: Logger.h:54
Definition: VersionCmd.h:17
void start()
Definition: BaseChannelImpl.h:285
Definition: dds-agent/src/AgentConnectionManager.h:18
uint16_t m_version
Session ID.
Definition: VersionCmd.h:26
Definition: BaseChannelImpl.h:205
Definition: BaseChannelImpl.h:41
void reconnect()
Definition: ClientChannelImpl.h:69
uint16_t m_channelType
Definition: VersionCmd.h:27
boost::asio::ip::tcp::socket & socket()
Definition: BaseChannelImpl.h:304
void connect(boost::asio::ip::tcp::resolver::iterator _endpoint_iterator)
Definition: ClientChannelImpl.h:74
void stop()
Definition: BaseChannelImpl.h:296
uint64_t m_protocolHeaderID
Definition: BaseChannelImpl.h:969