1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-05 09:47:56 -05:00
v2fly/transport/internet/udp/hub_other.go

17 lines
366 B
Go
Raw Normal View History

// +build !linux,!freebsd
2016-08-15 11:44:46 -04:00
package udp
import (
2021-02-16 15:31:50 -05:00
"github.com/v2fly/v2ray-core/v4/common/net"
2016-08-15 11:44:46 -04:00
)
func RetrieveOriginalDest(oob []byte) net.Destination {
return net.Destination{}
2016-08-15 11:44:46 -04:00
}
2016-08-19 06:58:26 -04:00
func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int, int, *net.UDPAddr, error) {
nBytes, addr, err := conn.ReadFromUDP(payload)
return nBytes, 0, 0, addr, err
}