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>(
42 this->
template pushMsg<cmdUNKNOWN>(_sender.
m_ID);
49 this->
template registerHandler<cmdREPLY_HANDSHAKE_ERR>(
53 LOG(
dds::misc::info) <<
"Handshake failed with the following error: " << _attachment->m_sMsg;
76 void connect(boost::asio::ip::tcp::resolver::iterator _endpoint_iterator)
78 m_endpoint_iterator = _endpoint_iterator;
79 boost::asio::async_connect(
82 [
this](boost::system::error_code ec, boost::asio::ip::tcp::resolver::iterator)
110 boost::asio::ip::tcp::resolver::iterator m_endpoint_iterator;
bool m_isHandshakeOK
Definition: BaseChannelImpl.h:978
std::string m_sSID
Definition: VersionCmd.h:25
Definition: BaseEventHandlersImpl.h:48
EChannelType
Definition: ProtocolDef.h:15
EChannelType m_channelType
Definition: BaseChannelImpl.h:979
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:64
std::string m_sessionID
Definition: BaseChannelImpl.h:980
#define LOG(severity)
Definition: Logger.h:34
Definition: VersionCmd.h:17
void start()
Definition: BaseChannelImpl.h:300
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
uint16_t m_version
Session ID.
Definition: VersionCmd.h:26
Definition: BaseChannelImpl.h:219
Definition: BaseChannelImpl.h:35
void reconnect()
Definition: ClientChannelImpl.h:71
uint16_t m_channelType
Definition: VersionCmd.h:27
boost::asio::ip::tcp::socket & socket()
Definition: BaseChannelImpl.h:319
uint64_t m_ID
Definition: BaseEventHandlersImpl.h:50
void connect(boost::asio::ip::tcp::resolver::iterator _endpoint_iterator)
Definition: ClientChannelImpl.h:76
void stop()
Definition: BaseChannelImpl.h:311
uint64_t m_protocolHeaderID
Definition: BaseChannelImpl.h:981