24 #ifndef CONFIG_SERVER_H 25 #define CONFIG_SERVER_H 28 #include <boost/asio.hpp> 39 ConfigServer(boost::asio::io_service& a_IOService, boost::asio::ip::tcp::tcp::socket& a_TcpSocket);
41 m_OnClosedCallback = a_OnClosedCallback;
44 void Start(std::shared_ptr<GatewayClientHandlerCollection> a_GatewayClientHandlerCollection,
45 std::shared_ptr<HdlcdClientHandlerCollection> a_HdlcdClientHandlerCollection);
65 bool OnFrame(std::shared_ptr<Frame> a_Frame);
69 boost::asio::io_service& m_IOService;
70 std::shared_ptr<GatewayClientHandlerCollection> m_GatewayClientHandlerCollection;
71 std::shared_ptr<HdlcdClientHandlerCollection> m_HdlcdClientHandlerCollection;
74 std::shared_ptr<FrameEndpoint> m_FrameEndpoint;
75 std::function<void()> m_OnClosedCallback;
78 #endif // CONFIG_SERVER_H This file contains the header declaration of class FrameEndpoint.
void HdlcdClientNewStatus(uint16_t a_SerialPortNbr, bool a_bIsResumed, bool a_bIsAlive)
void Start(std::shared_ptr< GatewayClientHandlerCollection > a_GatewayClientHandlerCollection, std::shared_ptr< HdlcdClientHandlerCollection > a_HdlcdClientHandlerCollection)
void HdlcdClientConnected(uint16_t a_SerialPortNbr)
void HdlcdClientCreated(uint16_t a_SerialPortNbr)
void HdlcdClientDisconnected(uint16_t a_SerialPortNbr)
void GatewayClientCreated(uint16_t a_ReferenceNbr)
void GatewayClientConnected(uint16_t a_ReferenceNbr)
void GatewayClientDestroyed(uint16_t a_ReferenceNbr)
void HdlcdClientDestroyed(uint16_t a_SerialPortNbr)
void GatewayClientDisconnected(uint16_t a_ReferenceNbr)
void GatewayClientError(uint16_t a_ReferenceNbr, E_GATEWAY_CLIENT_ERROR a_ErrorCode)
void HdlcdClientError(uint16_t a_SerialPortNbr, E_HDLCD_CLIENT_ERROR a_ErrorCode)
ConfigServer(boost::asio::io_service &a_IOService, boost::asio::ip::tcp::tcp::socket &a_TcpSocket)
void SetOnClosedCallback(std::function< void()> a_OnClosedCallback)