Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for get6to4IPv4Address (0.39 sec)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

          assertThrows(
              "IllegalArgumentException expected for '" + non6to4Address + "'",
              IllegalArgumentException.class,
              () -> InetAddresses.get6to4IPv4Address((Inet6Address) ip));
        }
    
        String valid6to4Address = "2002:0102:0304::1";
        String ipv4Str = "1.2.3.4";
    
        InetAddress ipv4 = InetAddresses.forString(ipv4Str);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

          assertThrows(
              "IllegalArgumentException expected for '" + non6to4Address + "'",
              IllegalArgumentException.class,
              () -> InetAddresses.get6to4IPv4Address((Inet6Address) ip));
        }
    
        String valid6to4Address = "2002:0102:0304::1";
        String ipv4Str = "1.2.3.4";
    
        InetAddress ipv4 = InetAddresses.forString(ipv4Str);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InetAddresses.java

       * @return {@link Inet4Address} of embedded IPv4 in 6to4 address
       * @throws IllegalArgumentException if the argument is not a valid IPv6 6to4 address
       */
      public static Inet4Address get6to4IPv4Address(Inet6Address ip) {
        checkArgument(is6to4Address(ip), "Address '%s' is not a 6to4 address.", toAddrString(ip));
    
        return getInet4Address(Arrays.copyOfRange(ip.getAddress(), 2, 6));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
Back to top