Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 47 for setCommand (0.05 seconds)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            @Test
            @DisplayName("Should get and set command")
            void testCommandProperty() {
                assertEquals(0, testMessage.getCommand());
                testMessage.setCommand(ServerMessageBlock2.SMB2_CREATE);
                assertEquals(ServerMessageBlock2.SMB2_CREATE, testMessage.getCommand());
            }
    
            @Test
            @DisplayName("Should get and set tree ID")
            void testTreeIdProperty() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

        void testWriteParameterWordsWireFormatSecondary() {
            byte[] dst = new byte[256];
    
            // Change command to secondary
            transaction.setCommand(ServerMessageBlock.SMB_COM_NT_TRANSACT_SECONDARY);
    
            // Set up transaction parameters
            transaction.setTotalParameterCount(100);
            transaction.setTotalDataCount(200);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                this.dataCount = Math.min(this.totalDataCount, available);
            } else {
                if (this.getCommand() != SMB_COM_NT_TRANSACT) {
                    this.setCommand(SMB_COM_TRANSACTION_SECONDARY);
                } else {
                    this.setCommand(SMB_COM_NT_TRANSACT_SECONDARY);
                }
                // totalParameterCount and totalDataCount are set ok from primary
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

         */
        public Trans2QueryFSInformationResponse(final Configuration config, final int informationLevel) {
            super(config);
            this.informationLevel = informationLevel;
            this.setCommand(SMB_COM_TRANSACTION2);
            this.setSubCommand(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION);
        }
    
        /**
         * Gets the information level that was queried.
         *
         * @return the informationLevel
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                 * Set bufferIndex according to andxOffset
                 */
    
                bufferIndex = this.headerStart + this.andxOffset;
    
                this.andx.headerStart = this.headerStart;
                this.andx.setCommand(this.andxCommand);
                this.andx.setErrorCode(getErrorCode());
                this.andx.setFlags(getFlags());
                this.andx.setFlags2(getFlags2());
                this.andx.setTid(getTid());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

                    response = sendComTransaction(request, response, params);
                } else {
                    if (response != null) {
                        response.setCommand(request.getCommand());
                    }
                    response = sendrecv(request, response, params);
                }
            } catch (final SmbException se) {
                throw se;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java

        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            if (this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY) {
                dst[dstIndex++] = this.maxSetupCount;
            } else {
                dst[dstIndex++] = (byte) 0x00; // Reserved
            }
            dst[dstIndex] = (byte) 0x00; // Reserved
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            setupMockConfig();
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
    
            assertNotNull(request);
            assertEquals(0x0B, request.getCommand()); // SMB2_IOCTL command
            verify(mockConfig).getTransactionBufferSize();
        }
    
        @Test
        @DisplayName("Test constructor with config, control code and file ID")
        void testConstructorWithFileId() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

            SmbComTreeDisconnect instance2 = new SmbComTreeDisconnect(mockConfig);
    
            // Then
            assertNotSame(instance1, instance2);
            assertEquals(instance1.getCommand(), instance2.getCommand());
            assertNotEquals(instance1.toString(), instance2.toString()); // Different object references in toString
        }
    
        /**
         * Test thread safety of read/write operations
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, resp1.getCommand());
    
            // Test with NT_TRANSACT command
            TestSmbComTransactionResponse resp2 =
                    new TestSmbComTransactionResponse(mockConfig, SmbComTransaction.SMB_COM_NT_TRANSACT, (byte) 0x02);
            assertEquals(SmbComTransaction.SMB_COM_NT_TRANSACT, resp2.getCommand());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.4K bytes
    - Click Count (0)
Back to Top