github.com/xraypb/xray-core@v1.6.6/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/xraypb/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  }