2011-03-30 17:33:16 +02: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.
|
|
|
|
|
2012-02-01 20:26:59 +01:00
|
|
|
// +build !cgo
|
2011-10-27 01:57:58 +02:00
|
|
|
|
2011-03-30 17:33:16 +02:00
|
|
|
// Stub cgo routines for systems that do not use cgo to do network lookups.
|
|
|
|
|
|
|
|
package net
|
|
|
|
|
2011-12-03 03:17:34 +01:00
|
|
|
func cgoLookupHost(name string) (addrs []string, err error, completed bool) {
|
2011-03-30 17:33:16 +02:00
|
|
|
return nil, nil, false
|
|
|
|
}
|
|
|
|
|
2011-12-03 03:17:34 +01:00
|
|
|
func cgoLookupPort(network, service string) (port int, err error, completed bool) {
|
2011-03-30 17:33:16 +02:00
|
|
|
return 0, nil, false
|
|
|
|
}
|
|
|
|
|
2011-12-03 03:17:34 +01:00
|
|
|
func cgoLookupIP(name string) (addrs []IP, err error, completed bool) {
|
2011-03-30 17:33:16 +02:00
|
|
|
return nil, nil, false
|
|
|
|
}
|
2011-05-20 02:18:15 +02:00
|
|
|
|
2011-12-03 03:17:34 +01:00
|
|
|
func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
|
2011-05-20 02:18:15 +02:00
|
|
|
return "", nil, false
|
|
|
|
}
|