v2ray-core/transport/internet/udp/hub_other.go

23 lines
415 B
Go
Raw Normal View History

2016-08-15 15:44:46 +00:00
// +build !linux
package udp
import (
2016-08-19 10:58:26 +00:00
"net"
2016-08-15 15:44:46 +00:00
v2net "github.com/v2ray/v2ray-core/common/net"
)
func SetOriginalDestOptions(fd int) error {
return nil
}
func RetrieveOriginalDest(oob []byte) v2net.Destination {
return nil
}
2016-08-19 10:58:26 +00: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
}