- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for GetsockoptInt (0.13 sec)
-
src/net/tcpconn_keepalive_illumos_test.go
tcpKeepAlive, err := syscall.GetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_KEEPALIVE) if err != nil { return } tcpKeepAliveIdle, err := syscall.GetsockoptInt(fd, syscall.IPPROTO_TCP, syscall_TCP_KEEPIDLE) if err != nil { return } tcpKeepAliveInterval, err := syscall.GetsockoptInt(fd, syscall.IPPROTO_TCP, syscall_TCP_KEEPINTVL) if err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:21 UTC 2024 - 4K bytes - Viewed (0) -
src/net/tcpconn_keepalive_solaris_test.go
tcpKeepAliveCount int ) if unix.SupportTCPKeepAliveIdleIntvlCNT() { tcpKeepAliveIdle, err = syscall.GetsockoptInt(fd, syscall.IPPROTO_TCP, syscall_TCP_KEEPIDLE) if err != nil { return } tcpKeepAliveIdleTime = time.Duration(tcpKeepAliveIdle) * time.Second tcpKeepAliveInterval, err = syscall.GetsockoptInt(fd, syscall.IPPROTO_TCP, syscall_TCP_KEEPINTVL) if err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 5.7K bytes - Viewed (0) -
internal/http/dial_linux.go
fd := int(fdPtr) _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_REUSEADDR, 1) _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_REUSEPORT, 1) // Enable custom socket send/recv buffers. if opts.SendBufSize > 0 { _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_SNDBUF, opts.SendBufSize) } if opts.RecvBufSize > 0 { _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_RCVBUF, opts.RecvBufSize)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 4.8K bytes - Viewed (0) -
src/net/tcpsockopt_solaris.go
} if d == 0 { d = defaultTCPKeepAliveIdle } else if d < 0 { return nil } // The kernel expects seconds so round to next highest second. secs := int(roundDurationUp(d, time.Second)) err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, sysTCP_KEEPIDLE, secs) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) } func setKeepAliveInterval(fd *netFD, d time.Duration) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 3.3K bytes - Viewed (0) -
src/net/tcpsockopt_unix.go
secs := int(roundDurationUp(d, time.Second)) err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPINTVL, secs) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) } func setKeepAliveCount(fd *netFD, n int) error { if n == 0 { n = defaultTCPKeepAliveCount } else if n < 0 { return nil } err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPCNT, n) runtime.KeepAlive(fd)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:21 UTC 2024 - 1.3K bytes - Viewed (0) -
src/net/ipsock_posix.go
probes = probes[:1] } for i := range probes { s, err := sysSocket(syscall.AF_INET6, syscall.SOCK_STREAM, syscall.IPPROTO_TCP) if err != nil { continue } defer poll.CloseFunc(s) syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, probes[i].value) sa, err := probes[i].laddr.sockaddr(syscall.AF_INET6) if err != nil { continue } if err := syscall.Bind(s, sa); err != nil { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.6K bytes - Viewed (0)