- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,063 for addrI (0.05 sec)
-
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) -
src/net/lookup_plan9.go
if len(f) < 2 { continue } addr := f[1] if i := bytealg.IndexByteString(addr, '!'); i >= 0 { addr = addr[:i] // remove port } if ParseIP(addr) == nil { continue } // only return unique addresses for _, a := range addrs { if a == addr { continue loop } } addrs = append(addrs, addr) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 17:08:38 UTC 2024 - 9.9K bytes - Viewed (0) -
src/net/dnsclient.go
// described in RFC 2782. func (addrs byPriorityWeight) shuffleByWeight() { sum := 0 for _, addr := range addrs { sum += int(addr.Weight) } for sum > 0 && len(addrs) > 1 { s := 0 n := randIntn(sum) for i := range addrs { s += int(addrs[i].Weight) if s > n { if i > 0 { addrs[0], addrs[i] = addrs[i], addrs[0] } break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
pilot/pkg/util/network/ip.go
defer cancel() var addrs []netip.Addr var lookupErr error if (len(lookupIPAddr) > 0) && (lookupIPAddr[0] != nil) { // if there are more than one lookup function, ignore all but first addrs, lookupErr = lookupIPAddr[0](ctx, host) } else { addrs, lookupErr = net.DefaultResolver.LookupNetIP(ctx, "ip", host) } if lookupErr != nil || len(addrs) == 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 21:27:21 UTC 2023 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
UniAddress[] addrs = new UniAddress[iaddrs.length]; for ( int ii = 0; ii < iaddrs.length; ii++ ) { addrs[ ii ] = new UniAddress(iaddrs[ ii ]); } return addrs; } private static UniAddress[] wrapNetbiosAddresses ( NetbiosAddress[] addr ) { UniAddress[] addrs = new UniAddress[addr.length];
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Aug 14 14:26:22 UTC 2022 - 38.2K bytes - Viewed (0) -
src/runtime/pprof/protomem_test.go
"testing" ) func TestConvertMemProfile(t *testing.T) { addr1, addr2, map1, map2 := testPCs(t) // MemProfileRecord stacks are return PCs, so add one to the // addresses recorded in the "profile". The proto profile // locations are call PCs, so conversion will subtract one // from these and get back to addr1 and addr2. a1, a2 := uintptr(addr1)+1, uintptr(addr2)+1 rate := int64(512 * 1024) rec := []profilerecord.MemProfileRecord{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 6.7K bytes - Viewed (0) -
src/runtime/mbitmap.go
for { var addr0, addr1 uintptr tp0, addr0 = tp0.next(addr + size) tp1, addr1 = tp1.next(addr + size) if addr0 != addr1 { failed = true break } if addr0 == 0 { break } } if failed { tp0 := s.typePointersOfType(typ, addr) tp1 := s.typePointersOf(addr, size) print("runtime: addr=", hex(addr), " size=", size, "\n") print("runtime: type=", toRType(typ).string(), "\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0) -
pilot/pkg/util/network/ip_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 08 16:24:15 UTC 2022 - 6.7K bytes - Viewed (0) -
src/cmd/internal/objfile/pe.go
case ch&bss != 0: sym.Code = 'B' } sym.Addr += imageBase + uint64(sect.VirtualAddress) } syms = append(syms, sym) addrs = append(addrs, sym.Addr) } sort.Sort(uint64s(addrs)) for i := range syms { j := sort.Search(len(addrs), func(x int) bool { return addrs[x] > syms[i].Addr }) if j < len(addrs) { syms[i].Size = int64(addrs[j] - syms[i].Addr) } } return syms, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 20 00:56:30 UTC 2022 - 4.9K bytes - Viewed (0) -
pkg/test/framework/components/istio/ingress.go
addrs = append(addrs, v.Addr().String()) ports = append(ports, int(v.Port())) } } if len(addrs) > 0 { return addrs, ports, nil } return nil, nil, fmt.Errorf("failed to get address for port %v", port) } // AddressForPort returns the externally reachable host and port of the component for the given port. func (c *ingressImpl) AddressesForPort(port int) ([]string, []int) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 29 17:13:34 UTC 2024 - 8K bytes - Viewed (0)