lichao
2021-05-26 a011a040996dd4cdb0152aae2206aebc7f4f7034
proto/source/bhome_msg.proto
@@ -19,6 +19,7 @@
   uint64 ssn_id = 5; // node mq id
   bytes proc_id = 6;
   bytes topic = 7; // for request route
   BHAddress dest = 8; // other host
}
@@ -28,6 +29,8 @@
   kMsgTypeCommonReply = 2;
   kMsgTypeProcInit = 8;
   kMsgTypeProcInitReply = 9;
   kMsgTypeRegister= 10;
   // kMsgTypeRegisterReply= 11;
   kMsgTypeHeartbeat = 12;
@@ -47,6 +50,8 @@
   // kMsgTypeUnsubscribeReply = 25;
   kMsgTypeUnregister = 26;
   // kMsgTypeUnregisterReply = 27;
   kMsgTypeQueryProc = 28;
   kMsgTypeQueryProcReply = 29;
}
@@ -60,6 +65,16 @@
   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);