Black Lives Matter. Support the Equal Justice Initiative.

Source file src/net/interface_stub.go

Documentation: net

     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  // If the ifindex is zero, interfaceTable returns mappings of all
    11  // network interfaces. Otherwise it returns a mapping of a specific
    12  // interface.
    13  func interfaceTable(ifindex int) ([]Interface, error) {
    14  	return nil, nil
    15  }
    16  
    17  // If the ifi is nil, interfaceAddrTable returns addresses for all
    18  // network interfaces. Otherwise it returns addresses for a specific
    19  // interface.
    20  func interfaceAddrTable(ifi *Interface) ([]Addr, error) {
    21  	return nil, nil
    22  }
    23  
    24  // interfaceMulticastAddrTable returns addresses for a specific
    25  // interface.
    26  func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
    27  	return nil, nil
    28  }
    29  

View as plain text