- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for NbtAddress (0.06 sec)
-
src/main/java/jcifs/netbios/NbtAddress.java
* * <pre> * * InetAddress addr = NbtAddress.getByName("jmorris2").getInetAddress(); * </pre> * * * From a UNIX platform with Samba installed you can perform similar * diagnostics using the <code>nmblookup</code> utility. * * @author Michael B. Allen * @see java.net.InetAddress * @since jcifs-0.1 */ public final class NbtAddress implements NetbiosAddress { /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
return groupName; } /** * Checks the node type of this address. * @return {@link jcifs.smb1.netbios.NbtAddress#B_NODE}, * {@link jcifs.smb1.netbios.NbtAddress#P_NODE}, {@link jcifs.smb1.netbios.NbtAddress#M_NODE}, * {@link jcifs.smb1.netbios.NbtAddress#H_NODE} * * @throws UnknownHostException if the host cannot be resolved to find out. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
when(mockConfig.getLmHostsFileName()).thenReturn(null); NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext); assertNull(result); } @Test void testGetByNameWithNonExistentFile() { // Test with non-existent file when(mockConfig.getLmHostsFileName()).thenReturn("/non/existent/lmhosts"); NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
assertEquals("192.168.1.1", nbtAddress.getHostAddress()); assertEquals("192.168.1.1", nbtAddress.getHostName()); } @Test void testGetName() { // Test getName method mockName = new Name(mockConfig, "TEST", 0x20, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
// Verify parsed flags Field addressArrayField = NodeStatusResponse.class.getDeclaredField("addressArray"); addressArrayField.setAccessible(true); NbtAddress[] addresses = (NbtAddress[]) addressArrayField.get(response); NbtAddress addr = addresses[0]; assertTrue(addr.groupName); assertEquals(3, addr.nodeType); assertTrue(addr.isBeingDeleted); assertTrue(addr.isInConflict);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/main/java/jcifs/netbios/UniAddress.java
if (this.addr instanceof NbtAddress) { return ((NbtAddress) this.addr).nextCalledName(tc); } if (this.calledName != NbtAddress.SMBSERVER_NAME) { this.calledName = NbtAddress.SMBSERVER_NAME; return this.calledName; } return null; } /** * Return the underlying <code>NbtAddress</code> or {@code InetAddress}. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
// Arrange NetbiosAddress nbtAddress = mock(NetbiosAddress.class); NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) }; when(nameServiceClient.getNodeStatus(nbtAddress)).thenReturn(expectedAddresses); // Act NetbiosAddress[] actualAddresses = nameServiceClient.getNodeStatus(nbtAddress); // Assert assertNotNull(actualAddresses);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
/* * Create an NbtAddress for the local interface with * the name deduced above possibly with scope applied and * cache it forever. */ final Name localName = new Name(tc.getConfig(), localHostname, 0x00, tc.getConfig().getNetbiosScope()); this.localhostAddress = new NbtAddress(localName, localInetAddress.hashCode(), false, NbtAddress.B_NODE, false, false, true, false,
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/UniAddress.java
if (addr instanceof NbtAddress) { return ((NbtAddress) addr).nextCalledName(); } if (calledName != NbtAddress.SMBSERVER_NAME) { calledName = NbtAddress.SMBSERVER_NAME; return calledName; } return null; } /** * Return the underlying <code>NbtAddress</code> or {@code InetAddress}. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/Lmhosts.java
* * @param host the hostname to resolve * @return the resolved NbtAddress or null if not found */ public synchronized static NbtAddress getByName(final String host) { return getByName(new Name(host, 0x20, null)); } synchronized static NbtAddress getByName(final Name name) { NbtAddress result = null; try { if (FILENAME != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6K bytes - Viewed (0)