mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-05-19 08:10:18 +00:00
feat: support WebRTC rendezvous signaling
This commit is contained in:
@@ -28,6 +28,7 @@ message PunchHoleRequest {
|
||||
bool force_relay = 8;
|
||||
int32 upnp_port = 9;
|
||||
bytes socket_addr_v6 = 10;
|
||||
string webrtc_sdp_offer = 11;
|
||||
}
|
||||
|
||||
message ControlPermissions {
|
||||
@@ -58,6 +59,8 @@ message PunchHole {
|
||||
int32 upnp_port = 6;
|
||||
bytes socket_addr_v6 = 7;
|
||||
ControlPermissions control_permissions = 8;
|
||||
string webrtc_sdp_offer = 9;
|
||||
reserved 10;
|
||||
}
|
||||
|
||||
message TestNatRequest {
|
||||
@@ -84,6 +87,7 @@ message PunchHoleSent {
|
||||
string version = 5;
|
||||
int32 upnp_port = 6;
|
||||
bytes socket_addr_v6 = 7;
|
||||
string webrtc_sdp_answer = 8;
|
||||
}
|
||||
|
||||
message RegisterPk {
|
||||
@@ -129,6 +133,7 @@ message PunchHoleResponse {
|
||||
bool is_udp = 9;
|
||||
int32 upnp_port = 10;
|
||||
bytes socket_addr_v6 = 11;
|
||||
string webrtc_sdp_answer = 12;
|
||||
}
|
||||
|
||||
message ConfigUpdate {
|
||||
@@ -161,6 +166,7 @@ message RelayResponse {
|
||||
int32 feedback = 9;
|
||||
bytes socket_addr_v6 = 10;
|
||||
int32 upnp_port = 11;
|
||||
string webrtc_sdp_answer = 12;
|
||||
}
|
||||
|
||||
message SoftwareUpdate { string url = 1; }
|
||||
@@ -231,6 +237,13 @@ message HttpProxyResponse {
|
||||
string error = 4;
|
||||
}
|
||||
|
||||
message IceCandidate {
|
||||
string id = 1;
|
||||
bytes socket_addr = 2;
|
||||
string session_key = 3;
|
||||
string candidate = 4;
|
||||
}
|
||||
|
||||
message RendezvousMessage {
|
||||
oneof union {
|
||||
RegisterPeer register_peer = 6;
|
||||
@@ -256,5 +269,6 @@ message RendezvousMessage {
|
||||
HealthCheck hc = 26;
|
||||
HttpProxyRequest http_proxy_request = 27;
|
||||
HttpProxyResponse http_proxy_response = 28;
|
||||
IceCandidate ice_candidate = 29;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user