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.proto |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/proto/source/bhome_msg.proto b/proto/source/bhome_msg.proto
index 6a4942d..dcb5c56 100644
--- a/proto/source/bhome_msg.proto
+++ b/proto/source/bhome_msg.proto
@@ -16,8 +16,9 @@
 	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
 }
 
 
@@ -27,6 +28,8 @@
 
 	kMsgTypeCommonReply = 2;
 
+	kMsgTypeProcInit = 8;
+	kMsgTypeProcInitReply = 9;
 	kMsgTypeRegister= 10;
 	// kMsgTypeRegisterReply= 11;
 	kMsgTypeHeartbeat = 12;
@@ -59,6 +62,13 @@
 	MsgTopicList topics = 1;
 }
 
+message MsgProcInit{ } // proc_id is in header.
+
+message MsgProcInitReply {
+	ErrorMsg errmsg = 1;
+	int32 proc_index = 2;
+}
+
 service TopicRPC {
 	rpc Query (MsgQueryTopic) returns (MsgQueryTopicReply);
 	rpc Request (MsgRequestTopic) returns (MsgQueryTopicReply);

--
Gitblit v1.8.0