Documentation ¶
Index ¶
- Variables
- func DisableKeepAlive() bool
- func KeepAliveIdle() time.Duration
- func KeepAliveInterval() time.Duration
- func SetDisableKeepAlive(disable bool)
- func SetKeepAliveIdle(t time.Duration)
- func SetKeepAliveInterval(t time.Duration)
- func SetNetDialer(dialer *net.Dialer)
- func SetNetListenConfig(lc *net.ListenConfig)
- func SupportTCPKeepAliveCount() bool
- func SupportTCPKeepAliveIdle() bool
- func SupportTCPKeepAliveInterval() bool
- func TCPKeepAlive(c net.Conn)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SetDisableKeepAliveCallback = utils.NewCallback[bool]()
)
Functions ¶
func DisableKeepAlive ¶
func DisableKeepAlive() bool
func KeepAliveIdle ¶
func KeepAliveInterval ¶
func SetDisableKeepAlive ¶
func SetDisableKeepAlive(disable bool)
func SetKeepAliveIdle ¶
func SetKeepAliveInterval ¶
func SetNetDialer ¶
func SetNetListenConfig ¶
func SetNetListenConfig(lc *net.ListenConfig)
func SupportTCPKeepAliveCount ¶
func SupportTCPKeepAliveCount() bool
func SupportTCPKeepAliveIdle ¶
func SupportTCPKeepAliveIdle() bool
func SupportTCPKeepAliveInterval ¶
func SupportTCPKeepAliveInterval() bool
func TCPKeepAlive ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.