lichao
2021-05-13 db322f33ba13592f2492317e3f1a070454c97059
src/defs.h
@@ -23,14 +23,15 @@
typedef uint64_t MQId;
const MQId kBHNodeInit = 10;
const MQId kBHDefaultSender = 99;
const MQId kBHTopicCenter = 100;
const MQId kBHTopicBus = 101;
const MQId kBHUniCenter = 102;
inline const MQId BHInitAddress() { return kBHNodeInit; }
inline const MQId BHGlobalSenderAddress() { return kBHDefaultSender; }
inline const MQId BHTopicCenterAddress() { return kBHTopicCenter; }
inline const MQId BHTopicBusAddress() { return kBHTopicBus; }
inline const MQId BHUniCenterAddress() { return kBHUniCenter; }
int64_t CalcAllocIndex(int64_t size);
int64_t GetAllocSize(int index);
const int kBHCenterPort = 24287;
const char kTopicSep = '.';