1 //go:build windows 2 // +build windows 3 4 package transport 5 6 import ( 7 "fmt" 8 "syscall" 9 ) 10 11 func setReusePort(network, address string, c syscall.RawConn) error { 12 return fmt.Errorf("port reuse is not supported on Windows") 13 } 14 15 // Windows supports SO_REUSEADDR, but it may cause undefined behavior, as 16 // there is no protection against port hijacking. 17 func setReuseAddress(network, addr string, conn syscall.RawConn) error { 18 return fmt.Errorf("address reuse is not supported on Windows") 19 } 20