// // Created by dongl on 23-4-8. // #ifndef IM_SERVER_H #define IM_SERVER_H #include "tbb/tbb.h" #include "event2/util.h" #include "pool/thread/ev_pool.h" #include "mmm/management.h" class MS { public: MS(); virtual ~MS(); static void link(struct evconnlistener *e, evutil_socket_t s, struct sockaddr *addr, int socklen, void *arg); static void listener(); static void read_cb(struct bufferevent *bev, void *ctx); static void write_cb(struct bufferevent *bev, void *ctx); static void event_cb(struct bufferevent *bev, short what, void *ctx); private: static ev_pool* pool; static class management* mage; }; #endif //IM_SERVER_H