Files
natpass/code/network/connect.proto
T
2021-08-12 16:55:05 +08:00

26 lines
394 B
Protocol Buffer

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