Skip to content

Commit 96d61f1

Browse files
committed
Added proto file for Port Forwarding session type.
1 parent 1a2eb01 commit 96d61f1

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

source/proto/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ list(APPEND SOURCE_PROTO
2424
desktop_internal.proto
2525
file_transfer.proto
2626
key_exchange.proto
27+
port_forwarding.proto
2728
host_internal.proto
2829
relay_peer.proto
2930
router_admin.proto

source/proto/port_forwarding.proto

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
}

0 commit comments

Comments
 (0)