| | |
| | | |
| | | public: |
| | | typedef Socket::PartialRecvCB MsgHandler; |
| | | typedef Socket::RawRecvCB MsgIHandler; |
| | | typedef Socket::RawRecvCB RawHandler; |
| | | typedef Socket::IdleCB IdleHandler; |
| | | 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); |
| | | static bool Install(const std::string &name, MsgHandler handler, RawHandler raw_handler, IdleHandler idle, const MQId mqid, const int mq_len); |
| | | |
| | | BHCenter(Socket::Shm &shm); |
| | | ~BHCenter() { Stop(); } |
| | |
| | | struct CenterInfo { |
| | | std::string name_; |
| | | MsgHandler handler_; |
| | | MsgIHandler raw_handler_; |
| | | RawHandler raw_handler_; |
| | | IdleHandler idle_; |
| | | MQId mqid_; |
| | | int mq_len_ = 0; |