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 |   42 ++++++++++++++++++++++++++++--------------
 1 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/proto/source/bhome_msg_api.proto b/proto/source/bhome_msg_api.proto
index 82b8115..8b422c7 100644
--- a/proto/source/bhome_msg_api.proto
+++ b/proto/source/bhome_msg_api.proto
@@ -1,15 +1,17 @@
 syntax = "proto3";
 option optimize_for = LITE_RUNTIME;
+option go_package="./bhome_msg";
 
 // public messages
 import "error_msg.proto";
 
-package bhome.msg;
+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
@@ -20,16 +22,14 @@
 	bytes private_info = 4; 
 }
 
+message MsgTopicList {
+	repeated bytes topic_list = 1;
+}
+
+
 message MsgPublish {
 	bytes topic = 1;
 	bytes data = 2; 
-}
-
-message MsgSubscribe {
-	repeated bytes topics = 1;
-}
-message MsgUnsubscribe {
-	repeated bytes topics = 1;
 }
 
 message MsgCommonReply {
@@ -51,9 +51,9 @@
 	ProcInfo proc = 1;
 }
 
-message MsgRegisterRPC
+message MsgUnregister
 {
-	repeated bytes topics = 1;
+	ProcInfo proc = 1;
 }
 
 message MsgHeartbeat
@@ -67,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