summaryrefslogtreecommitdiff
path: root/src/pkg/net/cgo_stub.go
blob: c6277cb657cbafd1b9d8090b70c9ec663a76e2eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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.

// Stub cgo routines for systems that do not use cgo to do network lookups.

package net

import "os"

func cgoLookupHost(name string) (addrs []string, err os.Error, completed bool) {
	return nil, nil, false
}

func cgoLookupPort(network, service string) (port int, err os.Error, completed bool) {
	return 0, nil, false
}

func cgoLookupIP(name string) (addrs []IP, err os.Error, completed bool) {
	return nil, nil, false
}

func cgoLookupCNAME(name string) (cname string, err os.Error, completed bool) {
	return "", nil, false
}