Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for 0x1d (1.12 sec)

  1. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

            byte[] testBytes1 = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 };
            byte[] testBytes2 = Arrays.copyOf(testBytes1, 16);
            byte[] testBytes3 = new byte[] { 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20 };
    
            Smb2LeaseKey key1 = new Smb2LeaseKey(testBytes1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

        @DisplayName("isWorkgroup true for empty host or NetBIOS 0x1d/0x1b")
        void testIsWorkgroup() throws Exception {
            assertTrue(locator("smb:///share").isWorkgroup()); // empty host
    
            Address addr = mock(Address.class);
            NetbiosAddress nb = mock(NetbiosAddress.class);
            when(addr.unwrap(NetbiosAddress.class)).thenReturn(nb);
            when(nb.getNameType()).thenReturn(0x1b);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NbtAddressTest.java

            // Test nextCalledName when calledName is SMBSERVER_NAME and nameType is 0x1D
            when(mockContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
            mockName = new Name(mockConfig, "MASTERBROWSER", 0x1D, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NbtAddress.java

                        dots++;
                        i++;
                    }
                }
            } else {
                switch (this.hostName.hexCode) {
                case 0x1B:
                case 0x1C:
                case 0x1D:
                    this.calledName = SMBSERVER_NAME;
                }
            }
    
            return this.calledName;
        }
    
        /**
         *
         * @param tc
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            }
    
        }
    
        NetbiosAddress[] lookupServerOrWorkgroup(final String name, final InetAddress svr) throws UnknownHostException {
            final Sem sem = new Sem(2);
            final int type = isWINS(svr) ? 0x1b : 0x1d;
    
            final QueryThread q1x = new QueryThread(sem, name, type, null, svr, this.transportContext);
            final QueryThread q20 = new QueryThread(sem, name, 0x20, null, svr, this.transportContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/NetbiosNameTest.java

            // Then
            assertEquals(testType, nameType);
            verify(mockNetbiosName).getNameType();
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0x00, 0x03, 0x06, 0x1B, 0x1C, 0x1D, 0x1E, 0x20 })
        @DisplayName("Should handle various NetBIOS name types")
        void testVariousNameTypes(int nameType) {
            // Given
            when(mockNetbiosName.getNameType()).thenReturn(nameType);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                        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)
  8. src/main/java/jcifs/smb1/netbios/NbtAddress.java

                        dots++;
                        i++;
                    }
                }
            } else {
                switch (hostName.hexCode) {
                case 0x1B:
                case 0x1C:
                case 0x1D:
                    calledName = SMBSERVER_NAME;
                }
            }
    
            return calledName;
        }
    
        /**
         * Gets the next called name for session establishment.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

        private static Stream<Arguments> provideNamesForWriteTest() {
            return Stream.of(Arguments.of("SERVER", 0x20, "CLIENT", 0x00), Arguments.of("WORKSTATION", 0x00, "USER", 0x03),
                    Arguments.of("DOMAIN", 0x1B, "BROWSER", 0x1D), Arguments.of("A", 0x20, "B", 0x00),
                    Arguments.of("VERYLONGNAMETEST", 0x20, "ANOTHERLONGNAME", 0x00));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/UniAddress.java

        }
    
        static NbtAddress lookupServerOrWorkgroup(final String name, final InetAddress svr) throws UnknownHostException {
            final Sem sem = new Sem(2);
            final int type = NbtAddress.isWINS(svr) ? 0x1b : 0x1d;
    
            final QueryThread q1x = new QueryThread(sem, name, type, null, svr);
            final QueryThread q20 = new QueryThread(sem, name, 0x20, null, svr);
            q1x.setDaemon(true);
            q20.setDaemon(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
Back to top