...

Source file src/go.etcd.io/etcd/client/pkg/v3/transport/sockopt_windows.go

Documentation: go.etcd.io/etcd/client/pkg/v3/transport

     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  

View as plain text