github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/transport/internet/udp/hub_other.go (about)

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