Documentation ¶
Index ¶
- Constants
- func IntBool(b bool) int
- func IntSecond(d time.Duration) int
- func KeepAlive(conn net.Conn, enable bool, idle, interval time.Duration, probes int) error
- func Set(conn net.Conn, cfg Config) error
- func SetDeferAccept(conn net.Conn, enable bool) error
- func SetDeferAcceptFd(fd int, enable bool) error
- func SetFastOpen(conn net.Conn, count int) error
- func SetFastOpenConnect(conn net.Conn, count int) error
- func SetFastOpenConnectFd(fd int, count int) error
- func SetFastOpenFd(fd int, count int) error
- func SetKeepAlive(conn net.Conn, enable bool) error
- func SetKeepAliveInterval(conn net.Conn, d time.Duration) error
- func SetKeepAliveProbes(conn net.Conn, count int) error
- func SetKeepAliveTime(conn net.Conn, d time.Duration) error
- func SetLinger(conn net.Conn, d time.Duration) error
- func SetLingerTimeout(conn net.Conn, d time.Duration) error
- func SetNoDelay(conn net.Conn, enable bool) error
- func SetNoLinger(conn net.Conn, enable bool) error
- func SetQuickACK(conn net.Conn, enable bool) error
- func SetQuickACKFd(fd int, enable bool) error
- func SetReadBuffer(conn net.Conn, bytes int) error
- func SetReuseAddr(conn net.Conn, enable bool) error
- func SetReuseAddrFd(fd int, enable bool) error
- func SetReusePort(conn net.Conn, enable bool) error
- func SetReusePortFd(fd int, enable bool) error
- func SetWriteBuffer(conn net.Conn, bytes int) error
- type Config
Constants ¶
View Source
const (
Version string = "1.0.0"
)
Variables ¶
This section is empty.
Functions ¶
func SetDeferAcceptFd ¶
func SetFastOpenConnectFd ¶
func SetFastOpenFd ¶
func SetQuickACKFd ¶
func SetReuseAddrFd ¶
func SetReusePortFd ¶
Types ¶
type Config ¶
type Config struct { NoLinger bool LingerTimeout time.Duration ReadBuffer int WriteBuffer int EnableNoDelay bool EnableKeepAlive bool KeepAliveTime time.Duration KeepAliveInterval time.Duration KeepAliveProbes int FastOpen int FastOpenConnect int EnableQuickACK bool EnableDeferAccept bool EnableReuseAddr bool EnableReusePort bool }
Click to show internal directories.
Click to hide internal directories.