github.com/database64128/tfo-go/v2@v2.2.0/sockopt_listen_generic.go (about)

     1  //go:build darwin || freebsd || windows
     2  
     3  package tfo
     4  
     5  func setTFOListener(fd uintptr) error {
     6  	return setTFO(int(fd), 1)
     7  }
     8  
     9  func setTFOListenerWithBacklog(fd uintptr, backlog int) error {
    10  	return setTFOListener(fd)
    11  }