File tree 2 files changed +55
-0
lines changed
2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ list(APPEND SOURCE_PROTO
24
24
desktop_internal.proto
25
25
file_transfer.proto
26
26
key_exchange.proto
27
+ port_forwarding.proto
27
28
host_internal.proto
28
29
relay_peer.proto
29
30
router_admin.proto
Original file line number Diff line number Diff line change
1
+ //
2
+ // Aspia Project
3
+ // Copyright (C) 2016-2025 Dmitry Chapyshev <[email protected] >
4
+ //
5
+ // This program is free software: you can redistribute it and/or modify
6
+ // it under the terms of the GNU General Public License as published by
7
+ // the Free Software Foundation, either version 3 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU General Public License
16
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+ //
18
+
19
+ syntax = "proto3" ;
20
+
21
+ option optimize_for = LITE_RUNTIME ;
22
+
23
+ package proto ;
24
+
25
+ message PortForwardingRequest
26
+ {
27
+ uint32 remote_port = 1 ;
28
+ uint32 connection_timeout = 2 ;
29
+ bool compress_data = 3 ;
30
+ }
31
+
32
+ message PortForwardingResult
33
+ {
34
+ enum ErrorCode
35
+ {
36
+ UNKNOWN = 0 ;
37
+ SUCCESS = 1 ;
38
+ TIMEOUT = 2 ;
39
+ }
40
+
41
+ ErrorCode error_code = 1 ;
42
+ }
43
+
44
+ message PortForwardingData
45
+ {
46
+ enum Flags
47
+ {
48
+ NONE = 0 ;
49
+ COMPRESSED = 1 ;
50
+ }
51
+
52
+ bytes data = 1 ;
53
+ uint32 flags = 2 ;
54
+ }
You can’t perform that action at this time.
0 commit comments