- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for ipvs (0.01 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/InetAddressOrder.kt
internal 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) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Apr 24 15:15:15 UTC 2025 - 1.3K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HostSpecifier.java
import java.net.InetAddress; import java.text.ParseException; import org.jspecify.annotations.Nullable; /** * A syntactically valid host specifier, suitable for use in a URI. This may be either a numeric IP * address in IPv4 or IPv6 notation, or a domain name. * * <p>Because this class is intended to represent host specifiers which can reasonably be used in a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
private val hostAddresses: MutableMap<String, List<InetAddress>> = mutableMapOf() private val requestedHosts: MutableList<String> = mutableListOf() private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6. /** Sets the results for `hostname`. */ operator fun set( hostname: String, addresses: List<InetAddress>, ): FakeDns { hostAddresses[hostname] = addresses return this }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt
} connectionUser.dnsEnd(socketHost, result) result } // Try each address for best behavior in mixed IPv4/IPv6 environments. val orderedAddresses = when { fastFallback -> reorderForHappyEyeballs(addresses) else -> addresses } for (inetAddress in orderedAddresses) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
} } /** No SNI for literal IPv6 addresses. */ @Test fun ipv6() { val recordedRequest = requestToHostnameViaProxy("2607:f8b0:400b:804::200e") assertThat(recordedRequest.url.host).isEqualTo("2607:f8b0:400b:804::200e") assertThat(recordedRequest.handshakeServerNames).isEmpty() } /** No SNI for literal IPv4 addresses. */ @Test fun ipv4() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt
private fun decodeIpv6(input: String): ByteArray? = decodeIpv6(input, 0, input.length) @Test fun testToCanonicalHost() { // IPv4 assertThat("127.0.0.1".toCanonicalHost()).isEqualTo("127.0.0.1") assertThat("1.2.3.4".toCanonicalHost()).isEqualTo("1.2.3.4") // IPv6 assertThat("::1".toCanonicalHost()).isEqualTo("::1") assertThat("2001:db8::1".toCanonicalHost()).isEqualTo("2001:db8::1")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dns.kt
* [system DNS service][SYSTEM], which is the default. Some applications may provide their own * implementation to use a different DNS server, to prefer IPv6 addresses, to prefer IPv4 addresses, * or to force a specific known IP address. * * Implementations of this interface must be safe for concurrent use. */ fun interface Dns { /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/features/connections.md
* Prefer to alternate IP addresses from different address families, (IPv6 / IPv4), starting with IPv6. * Don't start a new attempt until 250 ms after the most recent attempt was started. * Keep whichever TCP connection succeeds first and cancel all the others.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Feb 21 03:33:59 UTC 2022 - 5.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
.testEquals(); } public void testRequireBracketsForIPv6() { // Bracketed IPv6 works fine. assertEquals("::1", HostAndPort.fromString("[::1]").requireBracketsForIPv6().getHost()); assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost()); // Non-bracketed non-IPv6 works fine. assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 9.4K bytes - Viewed (0) -
README.md
OkHttp perseveres when the network is troublesome: it will silently recover from common connection problems. If your service has multiple IP addresses, OkHttp will attempt alternate addresses if the first connect fails. This is necessary for IPv4+IPv6 and services hosted in redundant data centers. OkHttp supports modern TLS features (TLS 1.3, ALPN, certificate pinning). It can be configured to fall back for broad connectivity.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 8.8K bytes - Viewed (0)