Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for getAddress (0.35 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

         * @param linkSpeed link speed in Mbps
         */
        public NetworkInterfaceInfo(InetAddress address, int linkSpeed) {
            this.address = address;
            this.linkSpeed = linkSpeed;
            this.ipv6 = address.getAddress().length == 16;
            this.capability = 0;
    
            // Check for RSS capability
            this.rssCapable = checkRSSCapability();
            if (rssCapable) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/UniAddressTest.java

                assertEquals(inetAddress, uniAddress.getAddress());
            }
    
            @Test
            void shouldConstructWithNbtAddress() {
                NbtAddress nbtAddress = mock(NbtAddress.class);
                UniAddress uniAddress = new UniAddress(nbtAddress);
                assertNotNull(uniAddress);
                assertEquals(nbtAddress, uniAddress.getAddress());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocatorImpl l1 = locator("smb://host/share?server=srv-from-query");
            assertSame(a1, l1.getAddress());
    
            // Query parameter 'address' builds UniAddress from IP
            SmbResourceLocatorImpl l2 = locator("smb://host/share?address=127.0.0.1");
            Address first = l2.getAddress();
            assertTrue(first instanceof UniAddress);
    
            // Host with root path -> possibleNTDomainOrWorkgroup=true
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

            assertEquals(ipv4, newIPv4.getAddress());
            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());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                when(locator.getURL()).thenReturn(anyUrlWithEmptyHost);
                // Simulate failure to find master browser (UnknownHost wrapped in CIFSException)
                when(locator.getAddress()).thenThrow(new CIFSException("no master", new UnknownHostException("MB")));
    
                // Act + Assert: the code maps this case to SmbUnsupportedOperationException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/RdmaChannelInfo.java

         */
        public int getRemoteKey() {
            return transform.getToken();
        }
    
        /**
         * Get remote memory address
         *
         * @return remote memory address (offset)
         */
        public long getAddress() {
            return transform.getOffset();
        }
    
        /**
         * Get length of memory region
         *
         * @return length in bytes
         */
        public int getLength() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NbtAddressTest.java

        }
    
        @Test
        void testGetAddress() {
            // Test getAddress for correct byte array conversion
            mockName = new Name(mockConfig, "TEST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            assertArrayEquals(new byte[] { (byte) 192, (byte) 168, (byte) 1, (byte) 1 }, nbtAddress.getAddress());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/witness/MockWitnessService.java

        }
    
        /**
         * Get the address the service is listening on
         *
         * @return the service address
         * @throws IOException if address cannot be determined
         */
        public InetAddress getAddress() throws IOException {
            if (serverSocket == null) {
                throw new IOException("Service not started");
            }
            return InetAddress.getLocalHost();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

        }
    
        @Override
        public String toString() {
            return "ChannelInfo{" + "channelId='" + channelId + '\'' + ", state=" + state + ", local=" + localInterface.getAddress()
                    + ", remote=" + remoteInterface.getAddress() + ", throughput=" + getThroughput() + " bps" + ", pending="
                    + getRequestsPending() + ", primary=" + isPrimary + '}';
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessNotification.java

            public WitnessIPAddress(InetAddress address) {
                this.address = address;
                this.flags = address.getAddress().length == 4 ? IPV4 : IPV6;
            }
    
            /**
             * Gets the IP address.
             *
             * @return the IP address
             */
            public InetAddress getAddress() {
                return address;
            }
    
            /**
             * Gets the address flags.
             *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top