mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
实现HTTP服务架构
This commit is contained in:
@@ -18,17 +18,16 @@ public:
|
||||
// 启动通讯连接
|
||||
virtual int start() { return 0; };
|
||||
// 关闭通讯连接
|
||||
virtual void close() { isCloseRequest_ = true; };
|
||||
virtual void close() { isCloseRequest = true; };
|
||||
|
||||
std::string id() { return id_; }
|
||||
|
||||
bool isAlive() { return isAlive_; }
|
||||
bool isConnected() { return isConnected_; }
|
||||
|
||||
public:
|
||||
std::string id_;
|
||||
bool isAlive_ = false;
|
||||
bool isConnected_ = false;
|
||||
bool isCloseRequest_ = false;
|
||||
std::string type;
|
||||
int commtype = 0;
|
||||
bool alive = false;
|
||||
bool isConnected = false;
|
||||
bool isCloseRequest = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user