File: udp_other.go

package info (click to toggle)
golang-github-miekg-dns 0.0~git20161018.0.58f52c5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 1,020 kB
  • ctags: 1,596
  • sloc: makefile: 4
file content (17 lines) | stat: -rw-r--r-- 542 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build !linux,!plan9

package dns

import (
	"net"
	"syscall"
)

// These do nothing. See udp_linux.go for an example of how to implement this.

// We tried to adhire to some kind of naming scheme.

func setUDPSocketOptions4(conn *net.UDPConn) error                 { return nil }
func setUDPSocketOptions6(conn *net.UDPConn) error                 { return nil }
func getUDPSocketOptions6Only(conn *net.UDPConn) (bool, error)     { return false, nil }
func getUDPSocketName(conn *net.UDPConn) (syscall.Sockaddr, error) { return nil, nil }