Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Trans2FindFirst2 (0.87 sec)

  1. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2.java

     * Initiates directory enumeration operations in SMB1 protocol, allowing clients
     * to search for files and directories matching specified patterns and criteria.
     *
     * @author mbechler
     */
    public class Trans2FindFirst2 extends SmbComTransaction {
    
        // flags
    
        static final int FLAGS_CLOSE_AFTER_THIS_REQUEST = 0x01;
        static final int FLAGS_CLOSE_IF_END_REACHED = 0x02;
        static final int FLAGS_RETURN_RESUME_KEYS = 0x04;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    import jcifs.smb1.Config;
    import jcifs.smb1.util.Hexdump;
    
    class Trans2FindFirst2 extends SmbComTransaction {
    
        // flags
    
        private static final int FLAGS_CLOSE_AFTER_THIS_REQUEST = 0x01;
        private static final int FLAGS_CLOSE_IF_END_REACHED = 0x02;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            // Test standard path without trailing backslash
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\path", "*.txt", 0x16, 10, 1024);
    
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2FindFirst2.getCommand());
            assertEquals(Trans2FindFirst2.TRANS2_FIND_FIRST2, trans2FindFirst2.getSubCommand());
            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

    import jcifs.Configuration;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    import jcifs.internal.smb1.com.SmbComFindClose2;
    import jcifs.internal.smb1.trans2.Trans2FindFirst2;
    import jcifs.internal.smb1.trans2.Trans2FindFirst2Response;
    import jcifs.internal.smb1.trans2.Trans2FindNext2;
    
    @ExtendWith(MockitoExtension.class)
    class DirFileEntryEnumIterator1Test {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Trans2FindNext2.java

            this.filename = filename;
            command = SMB_COM_TRANSACTION2;
            subCommand = TRANS2_FIND_NEXT2;
            informationLevel = Trans2FindFirst2.SMB_FILE_BOTH_DIRECTORY_INFO;
            flags = 0x00;
            maxParameterCount = 8;
            maxDataCount = Trans2FindFirst2.LIST_SIZE;
            maxSetupCount = 0;
        }
    
        @Override
        void reset(final int resumeKey, final String lastName) {
            super.reset();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            assertEquals(SmbComTransaction.TRANS2_FIND_NEXT2, next.subCommand, "Sub-command must be TRANS2_FIND_NEXT2");
            assertEquals(8, next.maxParameterCount, "Max parameter count should be 8");
            assertEquals(Trans2FindFirst2.LIST_SIZE, next.maxDataCount, "Max data count should use LIST_SIZE");
            assertEquals((byte) 0x00, next.maxSetupCount, "Max setup count must be 0");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java

    import jcifs.util.Hexdump;
    
    /**
     * Trans2 FindNext2 request message for SMB1 directory enumeration continuation.
     * This class implements the TRANS2_FIND_NEXT2 transaction to retrieve subsequent
     * directory entries after a Trans2FindFirst2 request, supporting large directory listings.
     */
    public class Trans2FindNext2 extends SmbComTransaction {
    
        private final int sid, informationLevel;
        private int resumeKey;
        private final int tflags;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

    import jcifs.SmbResourceLocator;
    import jcifs.internal.smb1.com.SmbComBlankResponse;
    import jcifs.internal.smb1.com.SmbComFindClose2;
    import jcifs.internal.smb1.trans.SmbComTransaction;
    import jcifs.internal.smb1.trans2.Trans2FindFirst2;
    import jcifs.internal.smb1.trans2.Trans2FindFirst2Response;
    import jcifs.internal.smb1.trans2.Trans2FindNext2;
    
    class DirFileEntryEnumIterator1 extends DirFileEntryEnumIteratorBase {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeImpl.java

                    throw e;
                } catch (final CIFSException e) {
                    throw SmbException.wrap(e);
                }
            } else {
                final Trans2FindFirst2 req = new Trans2FindFirst2(tf.getConfig(), "\\", "*", SmbConstants.ATTR_DIRECTORY,
                        tf.getConfig().getListCount(), tf.getConfig().getListSize());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            // Verify maxItems (2 bytes)
            assertEquals(TEST_BATCH_COUNT, SMBUtil.readInt2(buffer, 2));
    
            // Verify informationLevel (2 bytes) - should be SMB_FILE_BOTH_DIRECTORY_INFO (0x104)
            assertEquals(Trans2FindFirst2.SMB_FILE_BOTH_DIRECTORY_INFO, SMBUtil.readInt2(buffer, 4));
    
            // Verify resumeKey (4 bytes)
            assertEquals(TEST_RESUME_KEY, SMBUtil.readInt4(buffer, 6));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top