mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-25 22:19:49 +00:00
16 lines
286 B
Go
16 lines
286 B
Go
//go:build linux && (386 || arm || mips || mipsle || ppc)
|
|
|
|
package sockopts
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func unixTimeval() unix.Timeval {
|
|
timeUsec := fdControlUnixTimeout.Microseconds()
|
|
return unix.Timeval{
|
|
Sec: int32(timeUsec / 1e6),
|
|
Usec: int32(timeUsec % 1e6),
|
|
}
|
|
}
|