1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

Massive refactoring for better code structure

This commit is contained in:
V2Ray
2015-09-19 23:54:36 +02:00
parent 5eee1b97aa
commit 075753c030
34 changed files with 107 additions and 115 deletions

View File

@@ -0,0 +1,19 @@
package protocol
import (
"io"
v2net "github.com/v2ray/v2ray-core/common/net"
)
type Socks5UDPRequest struct {
fragment byte
address v2net.Address
data []byte
}
func ReadUDPRequest(reader io.Reader) (request Socks5UDPRequest, err error) {
//buf := make([]byte, 4 * 1024) // Regular UDP packet size is 1500 bytes.
return
}