由新的udp架构重新设计udp分离信道传输方式和vless v1协议并初步实现代码

This commit is contained in:
hahahrfool
2022-04-11 18:47:35 +08:00
parent 6dca31545b
commit c5ab5a201c
13 changed files with 590 additions and 345 deletions

View File

@@ -23,6 +23,12 @@ type ByteReader interface {
Read(p []byte) (n int, err error)
}
// bytes.Buffer 实现了 ByteReader
type ByteWriter interface {
WriteByte(byte) error
Write(p []byte) (n int, err error)
}
func IsFlagGiven(name string) bool {
found := false
flag.Visit(func(f *flag.Flag) {