github.com/ethersphere/bee/v2@v2.2.0/pkg/p2p/libp2p/unreachable_errors_windows.go (about) 1 // Copyright 2022 The Swarm 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 //go:build windows 6 7 package libp2p 8 9 import "golang.org/x/sys/windows" 10 11 // Collection of errors returned by the underlying 12 // operating system that signals network unavailability. 13 var ( 14 errHostUnreachable error = windows.WSAEHOSTUNREACH 15 errNetworkUnreachable error = windows.WSAENETUNREACH 16 )