- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for LoopbackInterface (0.25 sec)
-
src/net/interface_test.go
// license that can be found in the LICENSE file. package net import ( "fmt" "reflect" "runtime" "testing" ) // loopbackInterface returns an available logical network interface // for loopback tests. It returns nil if no suitable interface is // found. func loopbackInterface() *Interface { ift, err := Interfaces() if err != nil { return nil } for _, ifi := range ift {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 9.8K bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/nettest.go
} ip, ok := hasRoutableIP(network, ifi) if !ok { return nil, errNoAvailableAddress } return ip, nil } // LoopbackInterface returns an available logical network interface // for loopback test. func LoopbackInterface() (*net.Interface, error) { ift, err := net.Interfaces() if err != nil { return nil, errNoAvailableInterface } for _, ifi := range ift {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.5K bytes - Viewed (0) -
src/net/main_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.5K bytes - Viewed (0) -
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) -
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)