mirror of
https://github.com/lwch/natpass
synced 2025-11-03 02:23:46 +08:00
34 lines
692 B
Protocol Buffer
34 lines
692 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package network;
|
|
option go_package="./;network";
|
|
|
|
import "connect.proto";
|
|
import "forward.proto";
|
|
|
|
message handshake_payload {
|
|
bytes enc = 1;
|
|
}
|
|
|
|
message msg {
|
|
enum type {
|
|
handshake = 0;
|
|
keepalive = 1;
|
|
connect_req = 2;
|
|
connect_rep = 3;
|
|
disconnect = 4;
|
|
forward = 5;
|
|
}
|
|
type _type = 1;
|
|
string from = 2;
|
|
uint32 from_idx = 3;
|
|
string to = 4;
|
|
uint32 to_idx = 5;
|
|
oneof payload {
|
|
handshake_payload hsp = 10;
|
|
connect_request creq = 11;
|
|
connect_response crep = 12;
|
|
disconnect _disconnect = 13;
|
|
data _data = 14;
|
|
}
|
|
} |