From 4deeafbd502dc3c57dab8ad6ca601a38a9e7f074 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 06 四月 2021 19:10:49 +0800 Subject: [PATCH] add uni center. --- src/defs.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/defs.h b/src/defs.h index 10ac73c..8d5f468 100644 --- a/src/defs.h +++ b/src/defs.h @@ -21,10 +21,14 @@ #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 kBHTopicBus = boost::uuids::string_generator()("01234567-89ab-cdef-8349-1234567890ff"); +const MQId kBHTopicReqRepCenter = boost::uuids::string_generator()("12345670-89ab-cdef-8349-1234567890ff"); +const MQId kBHUniCenter = boost::uuids::string_generator()("87654321-89ab-cdef-8349-1234567890ff"); + const int kBHCenterPort = 24287; const char kTopicSep = '.'; namespace bhome_shm @@ -33,6 +37,7 @@ } // namespace bhome_shm bhome_shm::SharedMemory &BHomeShm(); +typedef std::string Topic; //TODO center can check shm for previous crash. -- Gitblit v1.8.0