github.com/peggyl/go@v0.0.0-20151008231540-ae315999c2d5/src/net/lookup_stub.go (about) 1 // Copyright 2011 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build nacl 6 7 package net 8 9 import "syscall" 10 11 func lookupProtocol(name string) (proto int, err error) { 12 return 0, syscall.ENOPROTOOPT 13 } 14 15 func lookupHost(host string) (addrs []string, err error) { 16 return nil, syscall.ENOPROTOOPT 17 } 18 19 func lookupIP(host string) (addrs []IPAddr, err error) { 20 return nil, syscall.ENOPROTOOPT 21 } 22 23 func lookupPort(network, service string) (port int, err error) { 24 return 0, syscall.ENOPROTOOPT 25 } 26 27 func lookupCNAME(name string) (cname string, err error) { 28 return "", syscall.ENOPROTOOPT 29 } 30 31 func lookupSRV(service, proto, name string) (cname string, srvs []*SRV, err error) { 32 return "", nil, syscall.ENOPROTOOPT 33 } 34 35 func lookupMX(name string) (mxs []*MX, err error) { 36 return nil, syscall.ENOPROTOOPT 37 } 38 39 func lookupNS(name string) (nss []*NS, err error) { 40 return nil, syscall.ENOPROTOOPT 41 } 42 43 func lookupTXT(name string) (txts []string, err error) { 44 return nil, syscall.ENOPROTOOPT 45 } 46 47 func lookupAddr(addr string) (ptrs []string, err error) { 48 return nil, syscall.ENOPROTOOPT 49 }