From 6c07fe29a5185835f28059f627a1d30e462da28b Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 29 六月 2021 14:01:19 +0800
Subject: [PATCH] add notify node change.
---
box/node_center.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/box/node_center.h b/box/node_center.h
index 54f84c0..ae5b075 100644
--- a/box/node_center.h
+++ b/box/node_center.h
@@ -194,6 +194,7 @@
void CheckNodes();
bool CanHeartbeat(const NodeInfo &node) { return Valid(node) || node.state_.flag_ == kStateOffline; }
void Publish(SharedMemory &shm, const Topic &topic, const std::string &content);
+ void Notify(const Topic &topic, NodeInfo &node);
void DoPublish(ShmSocket &sock, const Topic &topic, MsgI &msg);
Clients DoFindClients(const std::string &topic, bool from_remote);
bool Valid(const NodeInfo &node) { return node.state_.flag_ == kStateNormal; }
--
Gitblit v1.8.0