- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for allocateIpv6 (0.05 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
Buffer().writeInt(it.toInt()).readByteArray(), ) } } /** Allocates and returns `count` fake IPv6 addresses like [::ff00:64, ::ff00:65]. */ fun allocateIpv6(count: Int): List<InetAddress> { val from = nextAddress nextAddress += count return (from until nextAddress) .map { return@map InetAddress.getByAddress(
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/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt
newRouteSelector( address = address, fastFallback = false, ) 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,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 20.7K bytes - Viewed (0)