-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetcon.proto
More file actions
35 lines (30 loc) · 843 Bytes
/
netcon.proto
File metadata and controls
35 lines (30 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
syntax = "proto3";
package netcon;
enum request_e {
SERVERDATA_REQUEST_EXECCOMMAND = 0;
SERVERDATA_REQUEST_AUTH = 1;
SERVERDATA_REQUEST_SEND_CONSOLE_LOG = 2;
}
message request {
optional int32 messageId = 1;
optional int32 messageType = 2;
optional request_e requestType = 3;
optional string requestMsg = 4;
optional string requestVal = 5;
}
enum response_e {
SERVERDATA_RESPONSE_AUTH = 0;
SERVERDATA_RESPONSE_CONSOLE_LOG = 1;
}
message response {
optional int32 messageId = 1;
optional int32 messageType = 2;
optional response_e responseType = 3;
optional string responseMsg = 4;
optional string responseVal = 5;
}
message envelope {
bool encrypted = 1;
bytes nonce = 2;
bytes data = 3;
}