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:
19
proxy/socks/protocol/udp.go
Normal file
19
proxy/socks/protocol/udp.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user