24 #ifndef HDLCD_CLIENT_HANDLER_H 25 #define HDLCD_CLIENT_HANDLER_H 30 #include <boost/asio.hpp> 38 HdlcdClientHandler(boost::asio::io_service& a_IOService, std::shared_ptr<ConfigServerHandlerCollection> a_ConfigServerHandlerCollection,
39 std::shared_ptr<GatewayClientHandlerCollection> a_GatewayClientHandlerCollection,
const std::string& a_RemoteAddress, uint16_t a_TcpPortNbr, uint16_t a_SerialPortNbr);
43 void SendPacket(
const std::vector<unsigned char> &a_Payload);
47 void ResolveDestination();
50 boost::asio::io_service& m_IOService;
51 std::shared_ptr<ConfigServerHandlerCollection> m_ConfigServerHandlerCollection;
52 std::shared_ptr<GatewayClientHandlerCollection> m_GatewayClientHandlerCollection;
55 const std::string m_RemoteAddress;
56 const uint16_t m_TcpPortNbr;
57 const uint16_t m_SerialPortNbr;
60 boost::asio::ip::tcp::resolver m_Resolver;
61 boost::asio::deadline_timer m_ConnectionRetryTimer;
64 std::shared_ptr<HdlcdClient> m_HdlcdClient;
67 bool m_bSuspendSerialPort;
70 #endif // HDLCD_CLIENT_HANDLER_H
HdlcdClientHandler(boost::asio::io_service &a_IOService, std::shared_ptr< ConfigServerHandlerCollection > a_ConfigServerHandlerCollection, std::shared_ptr< GatewayClientHandlerCollection > a_GatewayClientHandlerCollection, const std::string &a_RemoteAddress, uint16_t a_TcpPortNbr, uint16_t a_SerialPortNbr)
void SendPacket(const std::vector< unsigned char > &a_Payload)