Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isCompatIPv4Address (0.29 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

       *
       * @param ip {@link Inet6Address} to be examined for embedded IPv4 compatible address format
       * @return {@code true} if the argument is a valid "compat" address
       */
      public static boolean isCompatIPv4Address(Inet6Address ip) {
        if (!ip.isIPv4CompatibleAddress()) {
          return false;
        }
    
        byte[] bytes = ip.getAddress();
        if ((bytes[12] == 0)
            && (bytes[13] == 0)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

        for (String nonCompatAddress : nonCompatAddresses) {
          InetAddress ip = InetAddresses.forString(nonCompatAddress);
          assertFalse(InetAddresses.isCompatIPv4Address((Inet6Address) ip));
          assertThrows(
              "IllegalArgumentException expected for '" + nonCompatAddress + "'",
              IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InetAddresses.java

       *
       * @param ip {@link Inet6Address} to be examined for embedded IPv4 compatible address format
       * @return {@code true} if the argument is a valid "compat" address
       */
      public static boolean isCompatIPv4Address(Inet6Address ip) {
        if (!ip.isIPv4CompatibleAddress()) {
          return false;
        }
    
        byte[] bytes = ip.getAddress();
        if ((bytes[12] == 0)
            && (bytes[13] == 0)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top