Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for isIpv6 (0.24 sec)

  1. 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());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. 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");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessNotification.java

             *
             * @return true if IPv4
             */
            public boolean isIPv4() {
                return (flags & IPV4) != 0;
            }
    
            /**
             * Checks if this is an IPv6 address.
             *
             * @return true if IPv6
             */
            public boolean isIPv6() {
                return (flags & IPV6) != 0;
            }
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

                }
                // Add brackets for IPv6
                return "[" + address + "]";
            }
            return address;
        }
    
        /**
         * Compresses an IPv6 address string to its canonical compressed form.
         * For example, "0:0:0:0:0:0:0:1" becomes "::1"
         *
         * @param ipv6Address the IPv6 address string to compress
         * @return the compressed IPv6 address string
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 06 08:31:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. 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)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java

         */
        @Override
        public InetAddress[] resolve(final String host) throws UnknownHostException {
            // Handle IPv6 addresses in bracket notation
            if (host != null && host.length() > 2 && host.startsWith("[") && host.endsWith("]")) {
                // Remove brackets for IPv6 address resolution
                final String ipv6Address = host.substring(1, host.length() - 1);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 06 07:24:43 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top