From d70afff273df67d0eb029ea16fa68a84faa9c200 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 20 七月 2021 19:26:50 +0800
Subject: [PATCH] 调整Request C.BHFree的位置

---
 proto/source/bhome_msg.proto |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/proto/source/bhome_msg.proto b/proto/source/bhome_msg.proto
index aabe372..b1f9772 100644
--- a/proto/source/bhome_msg.proto
+++ b/proto/source/bhome_msg.proto
@@ -16,8 +16,10 @@
 	repeated BHAddress route = 2; // for reply and proxy.
 	int64 timestamp = 3;
 	int32 type = 4;
-	bytes proc_id = 5;
-	bytes topic = 6; // for request route
+	uint64 ssn_id = 5; // node mq id
+	bytes proc_id = 6;
+	bytes topic = 7; // for request route
+	BHAddress dest = 8; // other host
 }
 
 
@@ -27,6 +29,8 @@
 
 	kMsgTypeCommonReply = 2;
 
+	kMsgTypeProcInit = 8;
+	kMsgTypeProcInitReply = 9;
 	kMsgTypeRegister= 10;
 	// kMsgTypeRegisterReply= 11;
 	kMsgTypeHeartbeat = 12;
@@ -44,19 +48,35 @@
 	// kMsgTypeSubscribeReply = 23;
 	kMsgTypeUnsubscribe = 24;
 	// kMsgTypeUnsubscribeReply = 25;
+	kMsgTypeUnregister = 26;
+	// kMsgTypeUnregisterReply = 27;
+	kMsgTypeQueryProc = 28;
+	kMsgTypeQueryProcReply = 29;
 
 }
 
 message MsgSubscribe {
 	MsgTopicList topics = 1;
+	bool network = 2;
 }
 message MsgUnsubscribe {
 	MsgTopicList topics = 1;
+	bool network = 2;
 }
 message MsgRegisterRPC {
 	MsgTopicList topics = 1;
 }
 
+message MsgProcInit{ 
+	int32 extra_mq_num = 1;
+} // proc_id is in header.
+
+message MsgProcInitReply {
+	ErrorMsg errmsg = 1;
+	int32 proc_index = 2;
+	repeated BHAddress extra_mqs = 3;
+}
+
 service TopicRPC {
 	rpc Query (MsgQueryTopic) returns (MsgQueryTopicReply);
 	rpc Request (MsgRequestTopic) returns (MsgQueryTopicReply);

--
Gitblit v1.8.0