/* * ===================================================================================== * * Filename: center.h * * Description: * * Version: 1.0 * Created: 2021年03月30日 16时22分24秒 * Revision: none * Compiler: gcc * * Author: Li Chao (), * Organization: * * ===================================================================================== */ #ifndef CENTER_TM9OUQTG #define CENTER_TM9OUQTG #include "socket.h" #include class BHCenter { typedef ShmSocket Socket; public: typedef std::function MsgHandler; BHCenter(Socket::Shm &shm); BHCenter(); ~BHCenter() { Stop(); } bool Start(); bool Stop() { return socket_.Stop(); } private: ShmSocket socket_; }; #endif // end of include guard: CENTER_TM9OUQTG