From 3c2b6739208d961cf8b86460d7f05516d044960c Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期三, 31 三月 2021 19:13:42 +0800
Subject: [PATCH] add async recv suport; sync by waiting for async.

---
 proto/source/bhome_msg.proto |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/proto/source/bhome_msg.proto b/proto/source/bhome_msg.proto
index 8365d2f..a88780b 100644
--- a/proto/source/bhome_msg.proto
+++ b/proto/source/bhome_msg.proto
@@ -25,6 +25,8 @@
 	kMsgTypePublish = 3;
 	kMsgTypeSubscribe = 4;
 	kMsgTypeUnsubscribe = 5;
+	kMsgTypeQueryTopic = 6;
+	kMsgTypeQueryTopicReply = 7;
 }
 
 message DataPub {
@@ -35,3 +37,20 @@
 message DataSub {
 	repeated bytes topics = 1;
 }
+
+message DataRequest {
+	bytes topic = 1;
+	bytes data = 2; 
+}
+
+message DataReply {
+	bytes data = 1; 
+}
+
+message DataQueryTopic {
+	bytes topic = 1;
+}
+
+message DataQueryTopicReply {
+	BHAddress address = 1;
+}

--
Gitblit v1.8.0