github.com/code-reading/golang@v0.0.0-20220303082512-ba5bc0e589a3/go/src/net/sockoptip_stub.go (about) 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 5 //go:build js && wasm 6 // +build js,wasm 7 8 package net 9 10 import "syscall" 11 12 func setIPv4MulticastInterface(fd *netFD, ifi *Interface) error { 13 // See golang.org/issue/7399. 14 return syscall.ENOPROTOOPT 15 } 16 17 func setIPv4MulticastLoopback(fd *netFD, v bool) error { 18 // See golang.org/issue/7399. 19 return syscall.ENOPROTOOPT 20 } 21 22 func joinIPv4Group(fd *netFD, ifi *Interface, ip IP) error { 23 // See golang.org/issue/7399. 24 return syscall.ENOPROTOOPT 25 } 26 27 func setIPv6MulticastInterface(fd *netFD, ifi *Interface) error { 28 // See golang.org/issue/7399. 29 return syscall.ENOPROTOOPT 30 } 31 32 func setIPv6MulticastLoopback(fd *netFD, v bool) error { 33 // See golang.org/issue/7399. 34 return syscall.ENOPROTOOPT 35 } 36 37 func joinIPv6Group(fd *netFD, ifi *Interface, ip IP) error { 38 // See golang.org/issue/7399. 39 return syscall.ENOPROTOOPT 40 }