lichao
2021-05-06 c2cc00574415c612e82f0955523d422f59594912
box/center.h
@@ -29,9 +29,10 @@
public:
   typedef Socket::PartialRecvCB MsgHandler;
   typedef Socket::RawRecvCB MsgIHandler;
   typedef Socket::IdleCB IdleHandler;
   static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const std::string &mqid, const int mq_len);
   static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const MQId &mqid, const int mq_len);
   static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const MQId mqid, const int mq_len);
   static bool Install(const std::string &name, MsgIHandler handler, IdleHandler idle, const MQId mqid, const int mq_len);
   BHCenter(Socket::Shm &shm);
   ~BHCenter() { Stop(); }
@@ -42,8 +43,9 @@
   struct CenterInfo {
      std::string name_;
      MsgHandler handler_;
      MsgIHandler raw_handler_;
      IdleHandler idle_;
      std::string mqid_;
      MQId mqid_;
      int mq_len_ = 0;
   };
   typedef std::map<std::string, CenterInfo> CenterRecords;