Debian Codegraph @

tcplisten/tcplisten_other.go

raw
1 //go:build darwin || dragonfly || freebsd || netbsd || openbsd || rumprun || (zos && s390x)
2
3 package tcplisten
4
5 import "golang.org/x/sys/unix"
6
7 const soReusePort = unix.SO_REUSEPORT
8
9 func enableDeferAccept(fd int) error {
10 // TODO: implement SO_ACCEPTFILTER:dataready here
11 return nil
12 }
13
14 func enableFastOpen(fd int) error {
15 // TODO: implement TCP_FASTOPEN when it will be ready
16 return nil
17 }
18
19 func soMaxConn() (int, error) {
20 // TODO: properly implement it
21 return unix.SOMAXCONN, nil
22 }