dgramopt_plan9.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2012 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. package ipv4
  5. import (
  6. "net"
  7. "syscall"
  8. )
  9. func (c *dgramOpt) MulticastTTL() (int, error) {
  10. // TODO(mikio): Implement this
  11. return 0, syscall.EPLAN9
  12. }
  13. func (c *dgramOpt) SetMulticastTTL(ttl int) error {
  14. // TODO(mikio): Implement this
  15. return syscall.EPLAN9
  16. }
  17. func (c *dgramOpt) MulticastInterface() (*net.Interface, error) {
  18. // TODO(mikio): Implement this
  19. return nil, syscall.EPLAN9
  20. }
  21. func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error {
  22. // TODO(mikio): Implement this
  23. return syscall.EPLAN9
  24. }
  25. func (c *dgramOpt) MulticastLoopback() (bool, error) {
  26. // TODO(mikio): Implement this
  27. return false, syscall.EPLAN9
  28. }
  29. func (c *dgramOpt) SetMulticastLoopback(on bool) error {
  30. // TODO(mikio): Implement this
  31. return syscall.EPLAN9
  32. }
  33. func (c *dgramOpt) JoinGroup(ifi *net.Interface, grp net.Addr) error {
  34. // TODO(mikio): Implement this
  35. return syscall.EPLAN9
  36. }
  37. func (c *dgramOpt) LeaveGroup(ifi *net.Interface, grp net.Addr) error {
  38. // TODO(mikio): Implement this
  39. return syscall.EPLAN9
  40. }