| | |
| | | |
| | | #include <boost/uuid/uuid.hpp> |
| | | #include <boost/uuid/uuid_generators.hpp> |
| | | #include <string> |
| | | |
| | | 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 |
| | |
| | | } // namespace bhome_shm |
| | | |
| | | 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 |