1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/proxy/socks/protocol/udp.go

20 lines
339 B
Go
Raw Normal View History

package protocol
2015-09-16 15:13:13 -04:00
import (
"io"
v2net "github.com/v2ray/v2ray-core/common/net"
2015-09-16 15:13:13 -04:00
)
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
}