Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loopbackInterface (0.31 sec)

  1. src/net/listen_test.go

    		t.Skip("IPv4 is not supported")
    	}
    
    	closer := func(cs []*UDPConn) {
    		for _, c := range cs {
    			if c != nil {
    				c.Close()
    			}
    		}
    	}
    
    	for _, ifi := range []*Interface{loopbackInterface(), nil} {
    		// Note that multicast interface assignment by system
    		// is not recommended because it usually relies on
    		// routing stuff for finding out an appropriate
    		// nexthop containing both network and link layer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  2. src/net/udpsock_test.go

    	"runtime"
    	"testing"
    	"time"
    )
    
    func BenchmarkUDP6LinkLocalUnicast(b *testing.B) {
    	testHookUninstaller.Do(uninstallTestHooks)
    
    	if !supportsIPv6() {
    		b.Skip("IPv6 is not supported")
    	}
    	ifi := loopbackInterface()
    	if ifi == nil {
    		b.Skip("loopback interface not found")
    	}
    	lla := ipv6LinkLocalUnicastAddr(ifi)
    	if lla == "" {
    		b.Skip("IPv6 link-local unicast address not found")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
Back to top