#ifndef __CHAOS_H_ #define __CHAOS_H_ #include using std::atomic; class Chaos{ //singleton public: static Chaos* getInstance(); private: Chaos()=default; static Chaos* instance; //members public: bool udpListen=false; bool tcpListen=false; bool programOK=true; atomicpackNum; int udpsocket; }; #endif