init: pristine aerc 0.20.0 source
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
package lib
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func SetTcpKeepaliveProbes(fd, count int) error {
|
||||
return syscall.SetsockoptInt(
|
||||
fd, syscall.IPPROTO_TCP, syscall.TCP_KEEPCNT, count)
|
||||
}
|
||||
|
||||
func SetTcpKeepaliveInterval(fd, interval int) error {
|
||||
return syscall.SetsockoptInt(
|
||||
fd, syscall.IPPROTO_TCP, syscall.TCP_KEEPINTVL, interval)
|
||||
}
|
||||
Reference in New Issue
Block a user