peer_online_state: serve online state

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-07-26 21:54:18 +08:00
parent 8c477c8cd0
commit a4940f4634
3 changed files with 62 additions and 8 deletions

View File

@@ -148,6 +148,16 @@ message PeerDiscovery {
string misc = 7;
}
message OnlineRequest {
string id = 1;
repeated string peers = 2;
}
message OnlineResponse {
repeated string onlines = 1;
repeated string offlines = 2;
}
message RendezvousMessage {
oneof union {
RegisterPeer register_peer = 6;
@@ -167,5 +177,7 @@ message RendezvousMessage {
TestNatRequest test_nat_request = 20;
TestNatResponse test_nat_response = 21;
PeerDiscovery peer_discovery = 22;
OnlineRequest online_request = 23;
OnlineResponse online_response = 24;
}
}