lichao
2021-06-02 993c556000a414011626770540678948f16eaa9e
box/center.h
@@ -22,6 +22,10 @@
#include <functional>
#include <map>
#include <memory>
class CenterTopicNode;
class TcpServer;
class TcpProxy;
class IoService;
class BHCenter
{
@@ -34,7 +38,7 @@
   static bool Install(const std::string &name, MsgHandler handler, RawHandler raw_handler, IdleHandler idle, const MQInfo &mq, const int mq_len);
   BHCenter(Socket::Shm &shm);
   ~BHCenter() { Stop(); }
   ~BHCenter();
   bool Start();
   bool Stop();
@@ -51,6 +55,11 @@
   static CenterRecords &Centers();
   std::map<std::string, std::shared_ptr<ShmSocket>> sockets_;
   std::unique_ptr<CenterTopicNode> topic_node_;
   std::unique_ptr<IoService> io_service_;
   std::unique_ptr<TcpServer> tcp_server_;
   std::unique_ptr<TcpProxy> tcp_proxy_;
};
#endif // end of include guard: CENTER_TM9OUQTG