zhangzengfei
2023-11-28 3a706d3378aa3626501370352963883fd2783558
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
syntax = "proto3";
 
message ProcInfo
{
    bytes proc_id = 1; // serial number, maybe managed
    bytes name = 2;
    bytes public_info = 3; // maybe json.
    bytes private_info = 4;
}
 
message MsgTopicList {
    repeated bytes topic_list = 1;
}
 
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;
}