2012-03-28 01:13:14 +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.
|
|
|
|
|
2014-09-21 19:33:12 +02:00
|
|
|
// +build !cgo netgo
|
2012-03-28 01:13:14 +02:00
|
|
|
|
|
|
|
package net
|
|
|
|
|
2017-04-10 13:32:00 +02:00
|
|
|
func init() { netGo = true }
|
|
|
|
|
|
|
|
type addrinfoErrno int
|
|
|
|
|
|
|
|
func (eai addrinfoErrno) Error() string { return "<nil>" }
|
|
|
|
func (eai addrinfoErrno) Temporary() bool { return false }
|
|
|
|
func (eai addrinfoErrno) Timeout() bool { return false }
|
|
|
|
|
2012-03-28 01:13:14 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2017-04-10 13:32:00 +02:00
|
|
|
func cgoLookupIP(name string) (addrs []IPAddr, err error, completed bool) {
|
2012-03-28 01:13:14 +02:00
|
|
|
return nil, nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
|
|
|
|
return "", nil, false
|
|
|
|
}
|
2017-04-10 13:32:00 +02:00
|
|
|
|
|
|
|
func cgoLookupPTR(addr string) (ptrs []string, err error, completed bool) {
|
|
|
|
return nil, nil, false
|
|
|
|
}
|