Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 13 of 13 for getNameType (0.56 seconds)

  1. 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());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. 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;
                            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 23.6K bytes
    - Click Count (0)
  3. 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())
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 38.5K bytes
    - Click Count (0)
Back to Top