mirror of
https://github.com/golang/go
synced 2024-11-19 00:44:40 -07:00
6d3a7e79a4
This change adds a type addrinfoErrno to represent getaddrinfo, getnameinfo-specific errors, and uses it in cgo-based lookup functions. Also retags cgo files for clarification and does minor cleanup. Change-Id: I6db7130ad7bf35bbd4e8839a97759e1364c43828 Reviewed-on: https://go-review.googlesource.com/9020 Reviewed-by: Ian Lance Taylor <iant@golang.org>
14 lines
398 B
Go
14 lines
398 B
Go
// Copyright 2015 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.
|
|
|
|
// +build cgo,!netgo
|
|
|
|
package net
|
|
|
|
type addrinfoErrno int
|
|
|
|
func (eai addrinfoErrno) Error() string { return "<nil>" }
|
|
func (eai addrinfoErrno) Temporary() bool { return false }
|
|
func (eai addrinfoErrno) Timeout() bool { return false }
|