Source file src/net/sockoptip_stub.go

     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  
     7  package net
     8  
     9  import "syscall"
    10  
    11  func setIPv4MulticastInterface(fd *netFD, ifi *Interface) error {
    12  	return syscall.ENOPROTOOPT
    13  }
    14  
    15  func setIPv4MulticastLoopback(fd *netFD, v bool) error {
    16  	return syscall.ENOPROTOOPT
    17  }
    18  
    19  func joinIPv4Group(fd *netFD, ifi *Interface, ip IP) error {
    20  	return syscall.ENOPROTOOPT
    21  }
    22  
    23  func setIPv6MulticastInterface(fd *netFD, ifi *Interface) error {
    24  	return syscall.ENOPROTOOPT
    25  }
    26  
    27  func setIPv6MulticastLoopback(fd *netFD, v bool) error {
    28  	return syscall.ENOPROTOOPT
    29  }
    30  
    31  func joinIPv6Group(fd *netFD, ifi *Interface, ip IP) error {
    32  	return syscall.ENOPROTOOPT
    33  }
    34  

View as plain text