Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getMaxTransactSize (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            assertTrue(bytesRead > 0);
            assertEquals(0x0302, response.getDialectRevision()); // SMB 3.0.2
            assertTrue(response.getMaxTransactSize() > 0);
            assertTrue(response.getMaxTransactSize() <= 16777216); // Within validated limits
        }
    
        /**
         * Creates a basic negotiate response buffer with minimum valid structure.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

         *
         * @return the maxTransactSize
         */
        public int getMaxTransactSize() {
            return this.maxTransactSize;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#getTransactionBufferSize()
         */
        @Override
        public int getTransactionBufferSize() {
            return getMaxTransactSize();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        void testGetMaxTransactSize() throws Exception {
            // Given
            setPrivateField(response, "maxTransactSize", 1048576);
    
            // When
            int size = response.getMaxTransactSize();
    
            // Then
            assertEquals(1048576, size);
        }
    
        @Test
        @DisplayName("Should return transaction buffer size")
        void testGetTransactionBufferSize() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top