Source File
tcpsockopt_darwin.go
Belonging Package
net
package net
import (
)
const sysTCP_KEEPINTVL = 0x101
:= int(roundDurationUp(, time.Second))
if := .pfd.SetsockoptInt(syscall.IPPROTO_TCP, sysTCP_KEEPINTVL, ); != nil {
return wrapSyscallError("setsockopt", )
}
:= .pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPALIVE, )
runtime.KeepAlive()
return wrapSyscallError("setsockopt", )
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |