Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 598 for addrI (0.11 sec)

  1. pilot/test/xdstest/endpoints.go

    				}
    			}
    			if !found {
    				return fmt.Errorf("unexpected address for endpoint %d: %v", i, addr)
    			}
    		}
    	}
    	return nil
    }
    
    func getLbEndpointAddrs(ep *endpointv3.LocalityLbEndpoints) []string {
    	addrs := make([]string, 0)
    	for _, lbEp := range ep.LbEndpoints {
    		addrs = append(addrs, util.GetEndpointHost(lbEp))
    	}
    	return addrs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadstore_test.go

    			Valu("v", OpConstBool, c.config.Types.Bool, 1, nil),
    			Valu("addr1", OpAddr, ptrType, 0, nil, "sb"),
    			Valu("addr2", OpAddr, ptrType, 0, nil, "sb"),
    			Valu("addr3", OpAddr, ptrType, 0, nil, "sb"),
    			Valu("zero1", OpZero, types.TypeMem, 1, c.config.Types.Bool, "addr3", "start"),
    			Valu("store1", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr1", "v", "zero1"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/third_party/forked/golang/netutil/addr.go

    }
    
    // FROM: http://golang.org/src/net/http/transport.go
    // canonicalAddr returns url.Host but always with a ":port" suffix
    func CanonicalAddr(url *url.URL) string {
    	addr := url.Host
    	if !hasPort(addr) {
    		return addr + ":" + portMap[url.Scheme]
    	}
    	return addr
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 21 10:49:41 UTC 2022
    - 723 bytes
    - Viewed (0)
  4. cmd/net.go

    	logger.FatalIf(err, "Unable to get IP addresses of this host")
    
    	for _, interf := range ifs {
    		addrs, err := interf.Addrs()
    		if err != nil {
    			continue
    		}
    		if runtime.GOOS == "windows" && interf.Flags&net.FlagUp == 0 {
    			continue
    		}
    
    		for _, addr := range addrs {
    			var ip net.IP
    			switch v := addr.(type) {
    			case *net.IPNet:
    				ip = v.IP
    			case *net.IPAddr:
    				ip = v.IP
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/net/protoconn_test.go

    	if !testableNetwork("unixgram") {
    		t.Skip("unixgram test")
    	}
    
    	addr1, addr2, addr3 := testUnixAddr(t), testUnixAddr(t), testUnixAddr(t)
    
    	a1, err := ResolveUnixAddr("unixgram", addr1)
    	if err != nil {
    		t.Fatal(err)
    	}
    	c1, err := DialUnix("unixgram", a1, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer c1.Close()
    	defer os.Remove(addr1)
    	c1.LocalAddr()
    	c1.RemoteAddr()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. src/net/packetconn_test.go

    	var packetConnTests = []struct {
    		net   string
    		addr1 string
    		addr2 string
    	}{
    		{"udp", "127.0.0.1:0", "127.0.0.1:0"},
    		{"unixgram", testUnixAddr(t), testUnixAddr(t)},
    	}
    
    	closer := func(c PacketConn, net, addr1, addr2 string) {
    		c.Close()
    		switch net {
    		case "unixgram":
    			os.Remove(addr1)
    			os.Remove(addr2)
    		}
    	}
    
    	for _, tt := range packetConnTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. src/net/tcpsock_posix.go

    	// TCP has a rarely used mechanism called a 'simultaneous connection' in
    	// which Dial("tcp", addr1, addr2) run on the machine at addr1 can
    	// connect to a simultaneous Dial("tcp", addr2, addr1) run on the machine
    	// at addr2, without either machine executing Listen. If laddr == nil,
    	// it means we want the kernel to pick an appropriate originating local
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. src/net/hosts.go

    			ipsCp := make([]string, len(byName.addrs))
    			copy(ipsCp, byName.addrs)
    			return ipsCp, byName.canonicalName
    		}
    	}
    	return nil, ""
    }
    
    // lookupStaticAddr looks up the hosts for the given address from /etc/hosts.
    func lookupStaticAddr(addr string) []string {
    	hosts.Lock()
    	defer hosts.Unlock()
    	readHosts()
    	addr = parseLiteralIP(addr)
    	if addr == "" {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/net/ipsock_test.go

    		lastByte  byte
    		primaries addrList
    		fallbacks addrList
    	}{
    		{0, addrList{addrs[0]}, addrList{addrs[1], addrs[2]}},
    		{1, addrList{addrs[0], addrs[2]}, addrList{addrs[1]}},
    		{2, addrList{addrs[0], addrs[1]}, addrList{addrs[2]}},
    		{3, addrList{addrs[0], addrs[1], addrs[2]}, nil},
    	}
    	for i, tt := range cases {
    		// Inverting the function's output should not affect the outcome.
    		for _, invert := range []bool{false, true} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 15 22:22:09 UTC 2017
    - 6.8K bytes
    - Viewed (0)
  10. src/net/ipsock.go

    		want6 = bytealg.CountString(addr, '[') > 0
    	}
    	if want6 {
    		return addrs.first(isNotIPv4)
    	}
    	return addrs.first(isIPv4)
    }
    
    // first returns the first address which satisfies strategy, or if
    // none do, then the first address of any kind.
    func (addrs addrList) first(strategy func(Addr) bool) Addr {
    	for _, addr := range addrs {
    		if strategy(addr) {
    			return addr
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top