udp_other.go 535 B

1234567891011121314151617
  1. // +build !linux
  2. package dns
  3. import (
  4. "net"
  5. "syscall"
  6. )
  7. // These do nothing. See udp_linux.go for an example of how to implement this.
  8. // We tried to adhire to some kind of naming scheme.
  9. func setUDPSocketOptions4(conn *net.UDPConn) error { return nil }
  10. func setUDPSocketOptions6(conn *net.UDPConn) error { return nil }
  11. func getUDPSocketOptions6Only(conn *net.UDPConn) (bool, error) { return false, nil }
  12. func getUDPSocketName(conn *net.UDPConn) (syscall.Sockaddr, error) { return nil, nil }