mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
23 lines
371 B
Protocol Buffer
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;
|
|
} |