github.com/EagleQL/Xray-core@v1.4.3/transport/internet/udp/hub_other.go (about) 1 // +build !linux,!freebsd 2 3 package udp 4 5 import ( 6 "github.com/xtls/xray-core/common/net" 7 ) 8 9 func RetrieveOriginalDest(oob []byte) net.Destination { 10 return net.Destination{} 11 } 12 13 func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error) { 14 nBytes, addr, err := conn.ReadFromUDP(payload) 15 return nBytes, 0, 0, addr, err 16 }