From c0d61292ef6bdd8e2e93525b5df6a8ec5c017c32 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 14 五月 2021 14:09:27 +0800
Subject: [PATCH] change refcount, avoid ShmMsgQueue AddRef on send.
---
proto/source/bhome_msg_api.proto | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/proto/source/bhome_msg_api.proto b/proto/source/bhome_msg_api.proto
index fd1ae8f..94bc82e 100644
--- a/proto/source/bhome_msg_api.proto
+++ b/proto/source/bhome_msg_api.proto
@@ -8,8 +8,8 @@
package bhome_msg;
message BHAddress {
- bytes mq_id = 1; // mqid, uuid
- bytes ip = 2; //
+ uint64 mq_id = 1;
+ bytes ip = 2;
int32 port = 3;
}
@@ -51,6 +51,11 @@
repeated BHAddress addrs = 2;
}
+message MsgUnregister
+{
+ ProcInfo proc = 1;
+}
+
message MsgHeartbeat
{
ProcInfo proc = 1;
@@ -62,5 +67,19 @@
message MsgQueryTopicReply {
ErrorMsg errmsg = 1;
- BHAddress address = 2;
+
+message BHNodeAddress {
+ bytes proc_id = 1;
+ BHAddress addr = 2;
+}
+ repeated BHNodeAddress node_address = 2;
+}
+
+message MsgQueryProc {
+ bytes proc_id = 1;
+}
+
+message MsgQueryProcReply {
+ ErrorMsg errmsg = 1;
+ repeated ProcInfo proc = 2;
}
--
Gitblit v1.8.0