1// Copyright 2009 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5package net 6 7import ( 8 "syscall" 9 "time" 10) 11 12func setKeepAliveIdle(_ *netFD, d time.Duration) error { 13 if d < 0 { 14 return nil 15 } 16 // OpenBSD has no user-settable per-socket TCP keepalive 17 // options. 18 return syscall.ENOPROTOOPT 19} 20 21func setKeepAliveInterval(_ *netFD, d time.Duration) error { 22 if d < 0 { 23 return nil 24 } 25 // OpenBSD has no user-settable per-socket TCP keepalive 26 // options. 27 return syscall.ENOPROTOOPT 28} 29 30func setKeepAliveCount(_ *netFD, n int) error { 31 if n < 0 { 32 return nil 33 } 34 // OpenBSD has no user-settable per-socket TCP keepalive 35 // options. 36 return syscall.ENOPROTOOPT 37} 38