Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for isIpv6 (0.06 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. 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];
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  5. 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. 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];
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  7. 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; }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  8. 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 {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Apr 24 15:15:15 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/HostSpecifier.java

       *   <li>An IPv6 address string with or without brackets, like {@code [2001:db8::1]} or {@code
       *       2001:db8::1}
       * </ul>
       *
       * @throws IllegalArgumentException if the specifier is not valid.
       */
      public static HostSpecifier fromValid(String specifier) {
        // Verify that no port was specified, and strip optional brackets from
        // IPv6 literals.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top