| | |
| | | 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; |
| | | 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;
|
| | | } |