mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
20 lines
329 B
Go
20 lines
329 B
Go
package socks
|
|
|
|
import (
|
|
"io"
|
|
|
|
v2net "github.com/v2ray/v2ray-core/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
|
|
}
|