Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for withZone (0.21 sec)

  1. src/net/udpsock_posix.go

    			ip = netip.AddrFrom4(from.Addr)
    			port = from.Port
    		}
    	case syscall.AF_INET6:
    		var from syscall.SockaddrInet6
    		n, err = c.fd.readFromInet6(b, &from)
    		if err == nil {
    			ip = netip.AddrFrom16(from.Addr).WithZone(zoneCache.name(int(from.ZoneId)))
    			port = from.Port
    		}
    	}
    	if err == nil {
    		addr = netip.AddrPortFrom(ip, uint16(port))
    	}
    	return n, addr, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/net/netip/netip_pkg_test.go

    		{mustPrefix("::1/128"), mustIP("::1"), true},
    		{mustPrefix("::1/127"), mustIP("::2"), false},
    		// Zones ignored: https://go.dev/issue/51899
    		{Prefix{mustIP("1.2.3.4").WithZone("a"), 32}, mustIP("1.2.3.4"), true},
    		{Prefix{mustIP("::1").WithZone("a"), 128}, mustIP("::1"), true},
    		// invalid IP
    		{mustPrefix("::1/0"), Addr{}, false},
    		{mustPrefix("1.2.3.4/0"), Addr{}, false},
    		// invalid Prefix
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 15:37:19 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. src/net/netip/netip.go

    func (ip Addr) Unmap() Addr {
    	if ip.Is4In6() {
    		ip.z = z4
    	}
    	return ip
    }
    
    // WithZone returns an IP that's the same as ip but with the provided
    // zone. If zone is empty, the zone is removed. If ip is an IPv4
    // address, WithZone is a no-op and returns ip unchanged.
    func (ip Addr) WithZone(zone string) Addr {
    	if !ip.Is6() {
    		return ip
    	}
    	if zone == "" {
    		ip.z = z6noz
    		return ip
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. src/net/netip/slow_test.go

    	}
    	var ret [16]byte
    	for i, f := range fs {
    		a, b, err := parseWord(f)
    		if err != nil {
    			return Addr{}, err
    		}
    		ret[i*2] = a
    		ret[i*2+1] = b
    	}
    
    	return AddrFrom16(ret).WithZone(zone), nil
    }
    
    // normalizeIPv6Slow expands s, which is assumed to be an IPv6
    // address, to its canonical text form.
    //
    // The canonical form of an IPv6 address is 8 colon-separated fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsServer.groovy

        private static final DateTimeFormatter RCF_3339_DATE_FORMAT = DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
            .withLocale(Locale.US)
            .withZone(GMT)
    
        private static final String DATE_HEADER = 'Mon, 29 Sep 2014 11:04:27 GMT'
        private static final String SERVER_GCS = 'GCS'
    
        TestDirectoryProvider testDirectoryProvider
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  6. api/go1.18.txt

    pkg net/netip, method (Addr) Prev() Addr
    pkg net/netip, method (Addr) String() string
    pkg net/netip, method (Addr) StringExpanded() string
    pkg net/netip, method (Addr) Unmap() Addr
    pkg net/netip, method (Addr) WithZone(string) Addr
    pkg net/netip, method (Addr) Zone() string
    pkg net/netip, method (AddrPort) Addr() Addr
    pkg net/netip, method (AddrPort) AppendTo([]uint8) []uint8
    pkg net/netip, method (AddrPort) IsValid() bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  7. src/net/netip/netip_test.go

    	test("Addr.Is4In6", func() { sinkBool = MustParseAddr("fe80::1").Is4In6() })
    	test("Addr.Unmap", func() { sinkIP = MustParseAddr("ffff::2.3.4.5").Unmap() })
    	test("Addr.WithZone", func() { sinkIP = MustParseAddr("fe80::1").WithZone("") })
    	test("Addr.IsGlobalUnicast", func() { sinkBool = MustParseAddr("2001:db8::1").IsGlobalUnicast() })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

        protected static final DateTimeFormatter RCF_822_DATE_FORMAT = DateTimeFormat.forPattern("EEE, dd MMM yyyy HH:mm:ss z")
            .withLocale(Locale.US)
            .withZone(GMT);
    
        public static final String ETAG = 'd41d8cd98f00b204e9800998ecf8427e'
        public static final String X_AMZ_REQUEST_ID = '0A398F9A1BAD4027'
        public static final String X_AMZ_ACL = 'bucket-owner-full-control'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  9. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/PerformanceTestPlugin.kt

            val performanceTest = project.tasks.register(name, PerformanceTest::class) {
                group = "verification"
                buildId = System.getenv("BUILD_ID") ?: "localBuild-${ofPattern("yyyyMMddHHmmss").withZone(systemDefault()).format(now())}"
                reportDir = project.layout.buildDirectory.file("${this.name}/${Config.performanceTestReportsDir}").get().asFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  10. src/net/udpsock.go

    //
    // If a is nil, a zero value is returned.
    func (a *UDPAddr) AddrPort() netip.AddrPort {
    	if a == nil {
    		return netip.AddrPort{}
    	}
    	na, _ := netip.AddrFromSlice(a.IP)
    	na = na.WithZone(a.Zone)
    	return netip.AddrPortFrom(na, uint16(a.Port))
    }
    
    // Network returns the address's network name, "udp".
    func (a *UDPAddr) Network() string { return "udp" }
    
    func (a *UDPAddr) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 16:58:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top