From 0bc72d004b08b6cac005931787f43c68dace7685 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 02 四月 2021 16:25:39 +0800
Subject: [PATCH] refactor pub/sub center.

---
 src/defs.h |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/defs.h b/src/defs.h
index 02978cd..dfb00ee 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -21,9 +21,22 @@
 
 #include <boost/uuid/uuid.hpp>
 #include <boost/uuid/uuid_generators.hpp>
+#include <string>
 
 typedef boost::uuids::uuid MQId;
 
-const MQId kBusQueueId = boost::uuids::string_generator()("01234567-89ab-cdef-8349-1234567890ff");
+const MQId kBHTopicBus = boost::uuids::string_generator()("01234567-89ab-cdef-8349-1234567890ff");
+const MQId kBHTopicReqRepCenter = boost::uuids::string_generator()("12345670-89ab-cdef-8349-1234567890ff");
+const int kBHCenterPort = 24287;
+const char kTopicSep = '.';
+namespace bhome_shm
+{
+class SharedMemory;
+} // namespace bhome_shm
+
+bhome_shm::SharedMemory &BHomeShm();
+typedef std::string Topic;
+
+//TODO center can check shm for previous crash.
 
 #endif // end of include guard: DEFS_KP8LKGD0

--
Gitblit v1.8.0