- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for ipv4 (0.05 sec)
-
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();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5K bytes - Viewed (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) }
Registered: Fri Dec 26 11:42:13 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 Dec 26 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 Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessNotification.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 6.4K bytes - Viewed (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) {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 06 08:31:03 UTC 2025 - 9.4K 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 Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.1K 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 Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6.3K 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 Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolverTest.java
IdnDnsResolver resolver = new IdnDnsResolver(); // Test IPv6 loopback address with brackets String host = "[::1]"; InetAddress[] addresses = resolver.resolve(host); assertNotNull(addresses); assertTrue(addresses.length > 0); // IPv6 loopback can be represented as ::1 or 0:0:0:0:0:0:0:1 String hostAddress = addresses[0].getHostAddress();
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 06 07:24:43 UTC 2025 - 3.6K bytes - Viewed (0)