tcpsockopt_openbsd.mx raw

   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  
   5  package net
   6  
   7  import (
   8  	"syscall"
   9  	"time"
  10  )
  11  
  12  func 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  
  21  func 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  
  30  func 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