- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getNameType (0.07 sec)
-
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
void testConstructorWithNetbiosNames() { when(mockCalledName.getName()).thenReturn("SERVER"); when(mockCalledName.getNameType()).thenReturn(0x20); when(mockCalledName.getScope()).thenReturn(null); when(mockCallingName.getName()).thenReturn("CLIENT"); when(mockCallingName.getNameType()).thenReturn(0x00); when(mockCallingName.getScope()).thenReturn(null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NbtAddress.java
NetbiosAddress[] addrs; try { addrs = tc.getNameServiceClient().getNodeStatus(this); if (this.getNameType() == 0x1D) { for (final NetbiosAddress addr : addrs) { if (addr.getNameType() == 0x20) { return addr.getHostName(); } } return null;
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/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
Address addr = mock(Address.class); NetbiosAddress nb = mock(NetbiosAddress.class); when(addr.unwrap(NetbiosAddress.class)).thenReturn(nb); when(nb.getNameType()).thenReturn(0x1d); // workgroup code // getFirstAddress branch: host given and path non-root -> possibleNTDomain=false when(nsc.getAllByName(eq("server"), eq(false))).thenReturn(new Address[] { addr });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
} @Test void testGetNameType() { // Test getNameType mockName = new Name(mockConfig, "TEST", 0x20, null); NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE); assertEquals(0x20, nbtAddress.getNameType()); } @Test void testHashCode() { // Test hashCode consistency
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/NameTest.java
assertEquals("test.scope", name.getScope()); } @Test void getNameType_shouldReturnHexCode() { Name name = new Name(mockConfig, "TestName", 0x1C, null); assertEquals(0x1C, name.getNameType()); } @Test void isUnknown_withUnknownAddress_shouldReturnTrue() { Name name = new Name(mockConfig, "0.0.0.0", 0, null); name.scope = null; assertTrue(name.isUnknown());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
try { final NetbiosAddress nbaddr = getAddress().unwrap(NetbiosAddress.class); if (nbaddr != null) { final int code = nbaddr.getNameType(); if (code == 0x1d || code == 0x1b) { this.type = SmbConstants.TYPE_WORKGROUP; return this.type; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
cacheAddressArray(addrs); return addrs; } catch (final UnknownHostException uhe) { throw new UnknownHostException("no name with type 0x" + Hexdump.toHexString(addr.getNameType(), 2) + (addr.getName().getScope() == null || addr.getName().getScope().isEmpty() ? " with no scope" : " with scope " + addr.getName().getScope())
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/netbios/NbtAddress.java
} /** * Returned the hex code associated with this name(e.g. 0x20 is for the file service) * * @return the NetBIOS name type code */ public int getNameType() { return hostName.hexCode; } /** * Returns a hashcode for this IP address. The hashcode comes from the IP address
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0)