Debian Codegraph @

transport/internet/udp/hub_other.go

raw
1 // +build !linux,!freebsd
2
3 package udp
4
5 import (
6 "v2ray.com/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 }