2012-03-27 23:13:14 +00:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2014-09-21 17:33:12 +00:00
|
|
|
// +build !cgo netgo
|
2012-03-27 23:13:14 +00:00
|
|
|
|
|
|
|
// Stub cgo routines for systems that do not use cgo to do network lookups.
|
|
|
|
|
|
|
|
package net
|
|
|
|
|
|
|
|
func cgoLookupHost(name string) (addrs []string, err error, completed bool) {
|
|
|
|
return nil, nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func cgoLookupPort(network, service string) (port int, err error, completed bool) {
|
|
|
|
return 0, nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func cgoLookupIP(name string) (addrs []IP, err error, completed bool) {
|
|
|
|
return nil, nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
|
|
|
|
return "", nil, false
|
|
|
|
}
|