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