keepalive

package
v1.111.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetDisableKeepAliveCallback = utils.NewCallback[bool]()
)

Functions

func DisableKeepAlive

func DisableKeepAlive() bool

func KeepAliveIdle

func KeepAliveIdle() time.Duration

func KeepAliveInterval

func KeepAliveInterval() time.Duration

func SetDisableKeepAlive

func SetDisableKeepAlive(disable bool)

func SetKeepAliveIdle

func SetKeepAliveIdle(t time.Duration)

func SetKeepAliveInterval

func SetKeepAliveInterval(t time.Duration)

func SetNetDialer

func SetNetDialer(dialer *net.Dialer)

func SetNetListenConfig

func SetNetListenConfig(lc *net.ListenConfig)

func SupportTCPKeepAliveCount

func SupportTCPKeepAliveCount() bool

func SupportTCPKeepAliveIdle

func SupportTCPKeepAliveIdle() bool

func SupportTCPKeepAliveInterval

func SupportTCPKeepAliveInterval() bool

func TCPKeepAlive

func TCPKeepAlive(c net.Conn)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL