2021-12-18 23:38:50 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
package discovery;
|
|
|
|
|
|
|
|
import "base_proto.proto";
|
|
|
|
|
|
|
|
message Discovery {
|
2021-12-21 00:10:14 +08:00
|
|
|
string id = 1;
|
|
|
|
base.PeerInfo peer = 2;
|
2021-12-18 23:38:50 +08:00
|
|
|
/// response port for current listening port(udp for now)
|
2021-12-21 00:10:14 +08:00
|
|
|
int32 port = 3;
|
2021-12-18 23:38:50 +08:00
|
|
|
}
|
2021-12-19 19:58:08 +08:00
|
|
|
|
|
|
|
message DiscoveryBack {
|
|
|
|
string id = 1;
|
|
|
|
base.PeerInfo peer = 2;
|
|
|
|
}
|