Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for IPv4 (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

    fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> {
      if (addresses.size < 2) {
        return addresses
      }
    
      val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
    
      return if (ipv6.isEmpty() || ipv4.isEmpty()) {
        addresses
      } else {
        interleave(ipv6, ipv4)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/InetAddresses.java

        }
    
        return true;
      }
    
      /**
       * Returns the IPv4 address embedded in an IPv4 compatible address.
       *
       * @param ip {@link Inet6Address} to be examined for an embedded IPv4 address
       * @return {@link Inet4Address} of the embedded IPv4 address
       * @throws IllegalArgumentException if the argument is not a valid IPv4 compatible address
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  3. okhttp/src/test/java/okhttp3/internal/connection/InetAddressOrderTest.kt

        val result =
          reorderForHappyEyeballs(
            listOf(
              ipv4_10_0_0_6,
              ipv4_10_0_0_1,
              ipv4_10_0_0_4,
              ipv6_ab,
              ipv6_fc,
            ),
          )
    
        assertThat(result).isEqualTo(
          listOf(ipv6_ab, ipv4_10_0_0_6, ipv6_fc, ipv4_10_0_0_1, ipv4_10_0_0_4),
        )
      }
    
      @Test fun ipv6Only() {
        val result = reorderForHappyEyeballs(listOf(ipv6_ab, ipv6_fc))
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  4. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

              initCause(e)
            },
          )
        }
      }
    
      @ExperimentalOkHttpApi
      companion object {
        @RequiresApi(Build.VERSION_CODES.Q)
        val IPv4 = AndroidAsyncDns(dnsClass = AsyncDns.DnsClass.IPV4)
    
        @RequiresApi(Build.VERSION_CODES.Q)
        val IPv6 = AndroidAsyncDns(dnsClass = AsyncDns.DnsClass.IPV6)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 10:07:48 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

    import org.junitpioneer.jupiter.RetryingTest
    import org.opentest4j.TestAbortedException
    
    /**
     * This test binds two different web servers (IPv4 and IPv6) to the same port, but on different
     * local IP addresses. Requests made to `127.0.0.1` will reach the IPv4 server, and requests made to
     * `::1` will reach the IPv6 server.
     *
     * By orchestrating two different servers with the same port but different IP addresses, we can
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/networking/v1alpha1/generated.proto

      // and host bits. For example an IPv4 address of 192.168.0.0/24, splits the
      // address into 24 bits for the network portion and 8 bits for the host portion.
      // To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6).
      // Minimum value is 4 (16 IPs).
      // This field is immutable.
      // +required
      optional int32 perNodeHostBits = 2;
    
      // ipv4 defines an IPv4 IP block in CIDR notation(e.g. "10.0.0.0/8").
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/InetAddressesTest.java

        InetAddress ipv4 = InetAddresses.forString("1.2.3.4");
        assertEquals(ipv4, InetAddresses.getEmbeddedIPv4ClientAddress(testIp));
    
        // Test 6to4 address.
        testIp = (Inet6Address) InetAddresses.forString("2002:0102:0304::1");
        assertTrue(InetAddresses.hasEmbeddedIPv4ClientAddress(testIp));
        ipv4 = InetAddresses.forString("1.2.3.4");
        assertEquals(ipv4, InetAddresses.getEmbeddedIPv4ClientAddress(testIp));
    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)
  8. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

          )
        assertThat(routeSelector.hasNext()).isTrue()
        val (ipv4_1, ipv4_2) = dns.allocate(2)
        val (ipv6_1, ipv6_2) = dns.allocateIpv6(2)
        dns[uriHost] = listOf(ipv4_1, ipv4_2, ipv6_1, ipv6_2)
    
        val selection = routeSelector.next()
        assertThat(selection.routes.map { it.socketAddress.address }).containsExactly(
          ipv4_1,
          ipv4_2,
          ipv6_1,
          ipv6_2,
        )
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        InetAddress ipv4 = InetAddresses.forString("1.2.3.4");
        assertEquals(ipv4, InetAddresses.getEmbeddedIPv4ClientAddress(testIp));
    
        // Test 6to4 address.
        testIp = (Inet6Address) InetAddresses.forString("2002:0102:0304::1");
        assertTrue(InetAddresses.hasEmbeddedIPv4ClientAddress(testIp));
        ipv4 = InetAddresses.forString("1.2.3.4");
        assertEquals(ipv4, InetAddresses.getEmbeddedIPv4ClientAddress(testIp));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        val request = Request(server1.url("/"))
    
        server1.enqueue(refusedStream)
        server2.enqueue(bodyResponse)
    
        dns[server1.hostName] = listOf(ipv6, ipv4)
        socketFactory[ipv6] = server1.inetSocketAddress
        socketFactory[ipv4] = server2.inetSocketAddress
    
        client =
          client.newBuilder()
            .fastFallback(false)
            .apply {
              retryOnConnectionFailure = false
            }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
Back to top