2016-07-22 20:15:38 +02:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-03-30 17:33:16 +02:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2013-11-06 20:49:01 +01:00
|
|
|
// +build !cgo netgo
|
2011-10-27 01:57:58 +02:00
|
|
|
|
2011-03-30 17:33:16 +02:00
|
|
|
package net
|
|
|
|
|
2016-07-22 20:15:38 +02:00
|
|
|
import "context"
|
|
|
|
|
2015-10-31 01:59:47 +01: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 }
|
|
|
|
|
2016-07-22 20:15:38 +02:00
|
|
|
func cgoLookupHost(ctx context.Context, name string) (addrs []string, err error, completed bool) {
|
2011-03-30 17:33:16 +02:00
|
|
|
return nil, nil, false
|
|
|
|
}
|
|
|
|
|
2016-07-22 20:15:38 +02:00
|
|
|
func cgoLookupPort(ctx context.Context, network, service string) (port int, err error, completed bool) {
|
2011-03-30 17:33:16 +02:00
|
|
|
return 0, nil, false
|
|
|
|
}
|
|
|
|
|
2016-07-22 20:15:38 +02:00
|
|
|
func cgoLookupIP(ctx context.Context, name string) (addrs []IPAddr, err error, completed bool) {
|
2011-03-30 17:33:16 +02:00
|
|
|
return nil, nil, false
|
|
|
|
}
|
2011-05-20 02:18:15 +02:00
|
|
|
|
2016-07-22 20:15:38 +02:00
|
|
|
func cgoLookupCNAME(ctx context.Context, name string) (cname string, err error, completed bool) {
|
2011-05-20 02:18:15 +02:00
|
|
|
return "", nil, false
|
|
|
|
}
|
2015-10-31 01:59:47 +01:00
|
|
|
|
2016-07-22 20:15:38 +02:00
|
|
|
func cgoLookupPTR(ctx context.Context, addr string) (ptrs []string, err error, completed bool) {
|
2015-10-31 01:59:47 +01:00
|
|
|
return nil, nil, false
|
|
|
|
}
|