- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 85 for isIpv6 (0.06 seconds)
-
src/test/java/jcifs/internal/witness/WitnessNotificationTest.java
assertTrue(newIPv4.isIPv4()); assertFalse(newIPv4.isIPv6()); assertEquals(WitnessNotification.WitnessIPAddress.IPV4, newIPv4.getFlags()); // Check IPv6 address WitnessNotification.WitnessIPAddress newIPv6 = newAddresses.get(1); assertEquals(ipv6, newIPv6.getAddress()); assertFalse(newIPv6.isIPv4()); assertTrue(newIPv6.isIPv6());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 5K bytes - Click Count (0) -
cmd/server-startup-msg.go
// Prints documentation message. printObjectAPIMsg() if globalIsDistErasure { logger.Startup(color.Bold(banner)) } } // Returns true if input is IPv6 func isIPv6(host string) bool { h, _, err := net.SplitHostPort(host) if err != nil { h = host } ip := net.ParseIP(h) return ip.To16() != nil && ip.To4() == nil }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 6.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessNotification.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 6.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
private static void checkBigIntegerConversion(String ip, BigInteger bigIntegerIp) { InetAddress address = InetAddresses.forString(ip); boolean isIpv6 = address instanceof Inet6Address; assertThat(InetAddresses.toBigInteger(address)).isEqualTo(bigIntegerIp); assertThat( isIpv6 ? InetAddresses.fromIPv6BigInteger(bigIntegerIp) : InetAddresses.fromIPv4BigInteger(bigIntegerIp))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 36.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
* @return IP address */ public InetAddress getAddress() { return address; } /** * Check if this is an IPv6 address * * @return true if IPv6, false if IPv4 */ public boolean isIpv6() { return ipv6; } /** * Check if RSS is supported * * @return true if RSS capable */ public boolean isRssCapable() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 9.8K bytes - Click Count (0) -
android/guava/src/com/google/common/net/InetAddresses.java
* or IPv6 respectively */ private static InetAddress fromBigInteger(BigInteger address, boolean isIpv6) { checkArgument(address.signum() >= 0, "BigInteger must be greater than or equal to 0"); int numBytes = isIpv6 ? 16 : 4; byte[] addressBytes = address.toByteArray(); byte[] targetCopyArray = new byte[numBytes];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 47.7K bytes - Click Count (0) -
docs/smb3-features/06-witness-protocol-design.md
public static final int IPV6 = 0x02; public WitnessIPAddress(InetAddress address) { this.address = address; this.flags = address.getAddress().length == 4 ? IPV4 : IPV6; } public InetAddress getAddress() { return address; } public int getFlags() { return flags; } public boolean isIPv4() { return (flags & IPV4) != 0; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java
NetworkInterfaceInfo info = new NetworkInterfaceInfo(testAddress, 1000); assertEquals(testAddress, info.getAddress()); assertEquals(1000, info.getLinkSpeed()); assertFalse(info.isIpv6()); assertEquals(0, info.getCapability()); } @Test void testIPv6Constructor() throws UnknownHostException { InetAddress ipv6Address = InetAddress.getByName("2001:db8::1");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 4.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
enableProtocol(Protocol.HTTP_2) 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 {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 10 15:25:06 GMT 2026 - 11.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/IpAddressUtilTest.java
// IPv6 with port and path InetAddress ipv6 = InetAddress.getByName("::1"); assertEquals("http://[::1]:8080/sso/metadata", IpAddressUtil.buildUrl("http", ipv6, 8080, "/sso/metadata")); // IPv6 with port, no path assertEquals("http://[::1]:9200", IpAddressUtil.buildUrl("http", ipv6, 9200, "")); // IPv6 without portCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 06 08:31:03 GMT 2025 - 8.9K bytes - Click Count (0)