TarsCloud_TarsCpp/unit-test/server/HelloServer.h
2021-08-23 15:40:10 +08:00

40 lines
685 B
C++
Executable File

#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