forked from esrrhs/pingtunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
316 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
protoc --go_out=. *.proto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
syntax = "proto3"; | ||
option go_package = "pingtunnel"; | ||
message MyMsg { | ||
string id = 1; | ||
int32 type = 2; | ||
string target = 3; | ||
bytes data = 4; | ||
int32 rproto = 5; | ||
int32 catch = 6; | ||
int32 key = 7; | ||
int32 tcpmode = 8; | ||
int32 tcpmode_buffersize = 9; | ||
int32 tcpmode_maxwin = 10; | ||
int32 tcpmode_resend_timems = 11; | ||
} | ||
|
||
message Frame { | ||
int32 type = 1; | ||
bool resend = 2; | ||
int64 sendtime = 3; | ||
int32 id = 4; | ||
bytes data = 5; | ||
repeated int32 dataid = 6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters