From 3f8ae6cf4f03be83f16846af32d73dd89b937c40 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 30 三月 2021 15:45:54 +0800
Subject: [PATCH] add dot separated topic partial match; refactor.

---
 src/shm_queue.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/shm_queue.h b/src/shm_queue.h
index 9d08016..a536553 100644
--- a/src/shm_queue.h
+++ b/src/shm_queue.h
@@ -115,10 +115,11 @@
     ShmMsgQueue(const MQId &id, ShmType &segment, const int len);
     ShmMsgQueue(ShmType &segment, const int len);
     ~ShmMsgQueue();
-    // bool Send(const MQId &remote_id, const void *data, const size_t size, const int timeout_ms); // request
-    bool Recv(BHMsg &msg, const int timeout_ms);
-    bool Send(const MQId &remote_id, const BHMsg &msg, const int timeout_ms);
     const MQId &Id() const { return id_; }
+
+    bool Recv(BHMsg &msg, const int timeout_ms);
+    bool Recv(MsgI &msg, const int timeout_ms) { return Read(msg, timeout_ms); }
+    bool Send(const MQId &remote_id, const BHMsg &msg, const int timeout_ms);
     bool Send(const MQId &remote_id, const MsgI &msg, const int timeout_ms);
 };
 

--
Gitblit v1.8.0