- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 59 for ipv4 (0.02 seconds)
-
src/test/java/jcifs/internal/witness/WitnessNotificationTest.java
} @Test void testAddIPAddresses() throws Exception { InetAddress ipv4 = InetAddress.getByName("192.168.1.100"); InetAddress ipv6 = InetAddress.getByName("2001:db8::1"); notification.addNewIPAddress(ipv4); notification.addNewIPAddress(ipv6); notification.addOldIPAddress(ipv4); List<WitnessNotification.WitnessIPAddress> newAddresses = notification.getNewIPAddresses();Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
val request = Request(server1.url("/")) server1.enqueue(refusedStream) server2.enqueue(bodyResponse) dns[server1.hostName] = listOf(ipv6, ipv4) socketFactory[ipv6] = server1.socketAddress socketFactory[ipv4] = server2.socketAddress client = client .newBuilder() .fastFallback(false) .apply { retryOnConnectionFailure = falseCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 11.6K bytes - Click Count (0) -
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) }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Apr 24 15:15:15 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessNotification.java
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 6.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/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
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
} } return result.readUtf8() } /** * Returns the canonical address for [address]. If [address] is an IPv6 address that is mapped to an * IPv4 address, this returns the IPv4-mapped address. Otherwise, this returns [address]. * * https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses */ internal fun canonicalizeInetAddress(address: ByteArray): ByteArray = when {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 11.2K bytes - Click Count (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 }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/IpAddressUtil.java
return false; } } /** * Formats an IP address string for use in a URL. * IPv6 addresses are wrapped in brackets, IPv4 addresses are returned as-is. * * @param address the IP address string to format * @return the formatted address (IPv6 with brackets, IPv4 unchanged) */ public static String formatForUrl(final String address) { if (address == null) {Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 9.4K bytes - Click Count (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() {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 6.3K bytes - Click Count (0) -
cmd/net.go
// 127.0.0.1 is moved to the end of the list. if ipV4s[i].IsLoopback() { return false } if ipV4s[j].IsLoopback() { return true } return []byte(ipV4s[i].To4())[3] > []byte(ipV4s[j].To4())[3] }) var ips []string for _, ip := range ipV4s { ips = append(ips, ip.String()) } return append(nonIPs, ips...) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.6K bytes - Click Count (1)