From 4e5cb7960ce4e7e66d5190be67426aeca8b55c3d Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 09 四月 2021 18:45:08 +0800
Subject: [PATCH] add heartbeat, not tested yet.

---
 src/defs.h |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/defs.h b/src/defs.h
index acfe09e..d50e380 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -21,17 +21,23 @@
 
 #include <boost/uuid/uuid.hpp>
 #include <boost/uuid/uuid_generators.hpp>
+#include <string>
 
 typedef boost::uuids::uuid MQId;
 
-const MQId kBHBusQueueId = boost::uuids::string_generator()("01234567-89ab-cdef-8349-1234567890ff");
+const MQId &BHTopicBusAddress();
+const MQId &BHTopicCenterAddress();
+const MQId &BHUniCenterAddress();
+
 const int kBHCenterPort = 24287;
 const char kTopicSep = '.';
-namespace bhome_shm {
+namespace bhome_shm
+{
 class SharedMemory;
-}
+} // namespace bhome_shm
 
 bhome_shm::SharedMemory &BHomeShm();
+typedef std::string Topic;
 
 //TODO center can check shm for previous crash.
 

--
Gitblit v1.8.0