Files
natpass/code/network/connect.proto
T
2021-07-30 17:26:29 +08:00

23 lines
371 B
Protocol Buffer

syntax = "proto3";
package network;
option go_package=".;network";
message connect_request {
enum type {
tcp = 0;
udp = 1;
}
string name = 1;
string cid = 2;
type _type = 3;
string addr = 4;
uint32 port = 5;
}
message connect_response {
string name = 1;
bool ok = 2;
string msg = 3;
string cid = 4;
}