helper_stub.go 575 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2014 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 plan9
  5. package nettest
  6. import (
  7. "fmt"
  8. "runtime"
  9. )
  10. func maxOpenFiles() int {
  11. return defaultMaxOpenFiles
  12. }
  13. func supportsRawIPSocket() (string, bool) {
  14. return fmt.Sprintf("not supported on %s", runtime.GOOS), false
  15. }
  16. func supportsIPv6MulticastDeliveryOnLoopback() bool {
  17. return false
  18. }
  19. func causesIPv6Crash() bool {
  20. return false
  21. }
  22. func protocolNotSupported(err error) bool {
  23. return false
  24. }