zhangmeng
2022-12-14 4fc07d5d891c251a1fe09c17ee16467d961a8f74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
syntax = "proto3";
option optimize_for = LITE_RUNTIME;
option go_package="./bhome_msg";
 
import "bhome_msg_api.proto";
import "error_msg.proto";
 
package bhome_msg;
 
message MsgProcTopicsAll {
  ProcInfo proc = 1;  //进程信息
  int32 port = 2;    //进程占用的端口
  bool online = 3;  //是否在线
  MsgTopicList topic_list = 4; //进程提供的主题列表
  MsgTopicList local_sublist = 5;  //进程订阅的本地主题列表
  MsgTopicList net_sublist = 6;  //进程订阅的网络主题列表
}
 
message MsgDevRegisterInfo {
  bytes devId = 1; //设备id
  bytes ip = 2;  //设备ip
  int32 proxyPort = 3; //代理的端口
  repeated MsgProcTopicsAll procInfos = 4;  //当前设备的所有进程信息列表
}
 
message Arr_MsgDevRegisterInfo {
  repeated MsgDevRegisterInfo arr = 1;
}
 
message TopicProcAddr {
  bytes devId = 1;
  bytes ip = 2;
  bytes procId = 3;
  int32 port = 4;
}
 
message TopicQueryNodeAddr {
  repeated TopicProcAddr addrs = 1;
}