github.com/sagernet/tfo-go@v0.0.0-20231209031829-7b5343ac1dc6/sockopt_windows.go (about) 1 package tfo 2 3 import "golang.org/x/sys/windows" 4 5 func setTFO(fd, value int) error { 6 return windows.SetsockoptInt(windows.Handle(fd), windows.IPPROTO_TCP, windows.TCP_FASTOPEN, value) 7 }