Mikio Hara | 89b7c66 | 2015-04-13 23:45:00 +0900 | [diff] [blame] | 1 | // 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 | |
| 5 | package net |
| 6 | |
| 7 | import "syscall" |
| 8 | |
Mikio Hara | 98e0556 | 2015-04-28 21:17:46 +0900 | [diff] [blame] | 9 | var ( |
| 10 | errTimedout = syscall.ETIMEDOUT |
| 11 | errOpNotSupported = syscall.EPLAN9 |
Mikio Hara | 92b74d0 | 2016-02-19 17:45:22 +0900 | [diff] [blame] | 12 | |
| 13 | abortedConnRequestErrors []error |
Mikio Hara | 98e0556 | 2015-04-28 21:17:46 +0900 | [diff] [blame] | 14 | ) |
Mikio Hara | 89b7c66 | 2015-04-13 23:45:00 +0900 | [diff] [blame] | 15 | |
| 16 | func isPlatformError(err error) bool { |
| 17 | _, ok := err.(syscall.ErrorString) |
| 18 | return ok |
| 19 | } |