123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef __HelloServer_H_
- #define __HelloServer_H_
- #include <iostream>
- #include "servant/Application.h"
- #include "PushThread.h"
- using namespace tars;
- extern string g_HelloServerObj;
- extern string g_TransDstServerObj;
- extern atomic<int> g_handleDestroy;
- class HelloServer : public Application, public TC_Thread
- {
- public:
- HelloServer() {}
- virtual ~HelloServer() {}
- /**
- * 服务初始化
- **/
- virtual void initialize();
- /**
- * 服务销毁
- **/
- virtual void destroyApp();
- protected:
- virtual void run();
- private:
- //用于push消息的线程
- PushInfoThread *pushThread;
- };
- ////////////////////////////////////////////
- #endif
|