github.com/database64128/tfo-go/v2@v2.2.0/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 }