#ifndef _MSGMANAGER_H_ #define _MSGMANAGER_H_ #include #include #include #include"definations.h" #include"usermanager.h" #include #include using std::list; using std::string; class msg_t{ public: unsigned int ip; string msg; }; class MsgManager{ private: MsgManager()=default; static MsgManager* instance; list mlist; public: static MsgManager* getInstance(); int maxlength=MSGLENGTH; int PopMsg(msg_t& dst); int PushMsg(msg_t& src); int size(); }; #endif