| | |
| | | typedef Socket::PartialRecvCB MsgHandler; |
| | | typedef Socket::RawRecvCB RawHandler; |
| | | typedef Socket::IdleCB IdleHandler; |
| | | static bool Install(const std::string &name, MsgHandler handler, RawHandler raw_handler, IdleHandler idle, const MQId mqid, const int mq_len); |
| | | 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(); } |
| | |
| | | MsgHandler handler_; |
| | | RawHandler raw_handler_; |
| | | IdleHandler idle_; |
| | | MQId mqid_; |
| | | MQInfo mq_; |
| | | int mq_len_ = 0; |
| | | }; |
| | | typedef std::map<std::string, CenterInfo> CenterRecords; |