blob: d7c7f1487fb14321e5cf1275aad7ad003155e71b [file] [log] [blame]
Mikio Hara89b7c662015-04-13 23:45:00 +09001// Copyright 2015 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package net
6
7import "syscall"
8
Mikio Hara98e05562015-04-28 21:17:46 +09009var (
10 errTimedout = syscall.ETIMEDOUT
11 errOpNotSupported = syscall.EPLAN9
Mikio Hara92b74d02016-02-19 17:45:22 +090012
13 abortedConnRequestErrors []error
Mikio Hara98e05562015-04-28 21:17:46 +090014)
Mikio Hara89b7c662015-04-13 23:45:00 +090015
16func isPlatformError(err error) bool {
17 _, ok := err.(syscall.ErrorString)
18 return ok
19}