github.com/metacubex/tfo-go@v0.0.0-20240228025757-be1269474a66/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 }