- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 888 for addrI (0.04 sec)
-
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/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) -
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) -
internal/http/listener.go
} addr = tcpAddr return addr } // Addrs - returns all address information of TCP listeners. func (listener *httpListener) Addrs() (addrs []net.Addr) { for i := range listener.listeners { addrs = append(addrs, listener.listeners[i].Addr()) } return addrs } // TCPOptions specify customizable TCP optimizations on raw socket type TCPOptions struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
src/cmd/internal/objfile/macho.go
} sym := Sym{Name: s.Name, Addr: s.Value, Code: '?'} i := sort.Search(len(addrs), func(x int) bool { return addrs[x] > s.Value }) if i < len(addrs) { sym.Size = int64(addrs[i] - s.Value) } if s.Sect == 0 { sym.Code = 'U' } else if int(s.Sect) <= len(f.macho.Sections) { sect := f.macho.Sections[s.Sect-1] switch sect.Seg { case "__TEXT", "__DATA_CONST": sym.Code = 'R' case "__DATA":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 3.1K bytes - Viewed (0) -
cmd/net_test.go
} } } } func TestSameLocalAddrs(t *testing.T) { testCases := []struct { addr1 string addr2 string sameAddr bool expectedErr error }{ {"", "", false, errors.New("unable to process empty address")}, {":9000", ":9000", true, nil}, {"localhost:9000", ":9000", true, nil},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
src/net/addrselect.go
"net/netip" "sort" ) func sortByRFC6724(addrs []IPAddr) { if len(addrs) < 2 { return } sortByRFC6724withSrcs(addrs, srcAddrs(addrs)) } func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) { if len(addrs) != len(srcs) { panic("internal error") } addrAttr := make([]ipAttr, len(addrs)) srcAttr := make([]ipAttr, len(srcs)) for i, v := range addrs { addrAttrIP, _ := netip.AddrFromSlice(v.IP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 00:24:06 UTC 2024 - 9.7K bytes - Viewed (0)