Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getNbtAllByAddress (0.07 sec)

  1. src/test/java/jcifs/NameServiceClientTest.java

            // Act
            NetbiosAddress[] actualAddresses = nameServiceClient.getNbtAllByAddress(host);
    
            // Assert
            assertNotNull(actualAddresses);
            assertEquals(1, actualAddresses.length);
            assertEquals(expectedAddresses[0], actualAddresses[0]);
            verify(nameServiceClient, times(1)).getNbtAllByAddress(host);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NbtAddressTest.java

            when(mockNameServiceClient.getNbtAllByAddress(any(NetbiosAddress.class))).thenReturn(new NbtAddress[0]);
    
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, true, NbtAddress.H_NODE);
            assertTrue(nbtAddress.isGroupAddress(mockContext));
            verify(mockNameServiceClient).getNbtAllByAddress(any(NetbiosAddress.class));
        }
    
        @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)
  3. src/main/java/jcifs/NameServiceClient.java

         *
         * @param addr
         *            the address to query
         * @return resolved addresses
         * @throws UnknownHostException
         *             if address cannot be resolved
         */
        NetbiosAddress[] getNbtAllByAddress(NetbiosAddress addr) throws UnknownHostException;
    
        /**
         * Retrieve all addresses of a host by it's address. NetBIOS hosts can
         * have many names for a given IP address. The name and IP address make
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServiceClientImpl.java

        }
    
        @Override
        public NbtAddress[] getNbtAllByAddress(final String host) throws UnknownHostException {
            return getNbtAllByAddress(getNbtByName(host, 0x00, null));
        }
    
        @Override
        public NbtAddress[] getNbtAllByAddress(final String host, final int type, final String scope) throws UnknownHostException {
            return getNbtAllByAddress(getNbtByName(host, type, scope));
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NbtAddress.java

            if (this.hostName.isUnknown()) {
                tc.getNameServiceClient().getNbtAllByAddress(this);
            }
        }
    
        void checkNodeStatusData(final CIFSContext tc) throws UnknownHostException {
            if (!this.isDataFromNodeStatus) {
                tc.getNameServiceClient().getNbtAllByAddress(this);
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        void testGetNbtAllByName() {
            // When/Then - Should throw UnknownHostException quickly
            UnknownHostException exception = assertThrows(UnknownHostException.class, () -> {
                nameServiceClient.getNbtAllByAddress("NONEXISTENT-FAST-FAIL");
            }, "Should throw UnknownHostException for non-existent NetBIOS name");
    
            // Verify the exception message indicates name resolution failure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top