sockopt_stub.go 736 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2011 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. // +build nacl
  5. package net
  6. import "syscall"
  7. func setDefaultSockopts(s, family, sotype int, ipv6only bool) error {
  8. return nil
  9. }
  10. func setDefaultListenerSockopts(s int) error {
  11. return nil
  12. }
  13. func setDefaultMulticastSockopts(s int) error {
  14. return nil
  15. }
  16. func setReadBuffer(fd *netFD, bytes int) error {
  17. return syscall.ENOPROTOOPT
  18. }
  19. func setWriteBuffer(fd *netFD, bytes int) error {
  20. return syscall.ENOPROTOOPT
  21. }
  22. func setKeepAlive(fd *netFD, keepalive bool) error {
  23. return syscall.ENOPROTOOPT
  24. }
  25. func setLinger(fd *netFD, sec int) error {
  26. return syscall.ENOPROTOOPT
  27. }