mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 20:47:38 +03:00
15 lines
335 B
Go
15 lines
335 B
Go
//go:build linux && (amd64 || arm64 || loong64 || mips64 || mips64le || ppc64 || ppc64le || riscv64 || s390x || sparc64)
|
|
|
|
package sockopts
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func unixTimeval() unix.Timeval {
|
|
timeUsec := fdControlUnixTimeout.Microseconds()
|
|
return unix.Timeval{
|
|
Sec: timeUsec / 1e6,
|
|
Usec: timeUsec % 1e6,
|
|
}
|
|
}
|