From 628c1c21ffb19d8c96ed9ce89531595f9870ab1a Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 23 四月 2021 18:41:02 +0800 Subject: [PATCH] add msg tag; recv all msgs before remove mq. --- src/defs.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/defs.h b/src/defs.h index dfb00ee..08181d8 100644 --- a/src/defs.h +++ b/src/defs.h @@ -25,8 +25,10 @@ typedef boost::uuids::uuid MQId; -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 &BHTopicBusAddress(); +const MQId &BHTopicCenterAddress(); +const MQId &BHUniCenterAddress(); + const int kBHCenterPort = 24287; const char kTopicSep = '.'; namespace bhome_shm @@ -36,7 +38,8 @@ bhome_shm::SharedMemory &BHomeShm(); typedef std::string Topic; - +void SetLastError(const int ec, const std::string &msg); +void GetLastError(int &ec, std::string &msg); //TODO center can check shm for previous crash. #endif // end of include guard: DEFS_KP8LKGD0 -- Gitblit v1.8.0