From cf05ea3d9f43e4e84d621e1f9d54cbef552b6e2b Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 18 五月 2021 16:53:28 +0800
Subject: [PATCH] fix center init mutex.

---
 proto/source/bhome_msg_api.proto |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/proto/source/bhome_msg_api.proto b/proto/source/bhome_msg_api.proto
index fd1ae8f..8b422c7 100644
--- a/proto/source/bhome_msg_api.proto
+++ b/proto/source/bhome_msg_api.proto
@@ -8,9 +8,10 @@
 package bhome_msg;
 
 message BHAddress {
-	bytes mq_id = 1; // mqid, uuid
-	bytes ip = 2;   //
-	int32 port = 3;
+	uint64 mq_id = 1;
+	int64 abs_addr = 2;
+	bytes ip = 3;   
+	int32 port = 4;
 }
 
 message ProcInfo
@@ -48,7 +49,11 @@
 message MsgRegister
 {
 	ProcInfo proc = 1;
-	repeated BHAddress addrs = 2;
+}
+
+message MsgUnregister
+{
+	ProcInfo proc = 1;
 }
 
 message MsgHeartbeat
@@ -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