Merge pull request #4 from RS7-EdgeComputing/EDGE-129
[platform/core/system/edge-orchestration.git] / vendor / github.com / miekg / dns / listen_go_not111.go
1 // +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
2
3 package dns
4
5 import "net"
6
7 const supportsReusePort = false
8
9 func listenTCP(network, addr string, reuseport bool) (net.Listener, error) {
10         if reuseport {
11                 // TODO(tmthrgd): return an error?
12         }
13
14         return net.Listen(network, addr)
15 }
16
17 func listenUDP(network, addr string, reuseport bool) (net.PacketConn, error) {
18         if reuseport {
19                 // TODO(tmthrgd): return an error?
20         }
21
22         return net.ListenPacket(network, addr)
23 }