Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 234 for Command3 (2.88 sec)

  1. src/main/java/jcifs/util/ServerResponseValidator.java

                throw new SmbException("Invalid SMB protocol identifier");
            }
    
            // Validate command is in valid range
            if (command < 0 || command > 255) {
                failedValidations.incrementAndGet();
                throw new SmbException("Invalid command code: " + command);
            }
        }
    
        /**
         * Validate array size before allocation
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        }
    
        @Test
        @DisplayName("Should verify command constant in constructor")
        void testCommandConstant() throws Exception {
            // When
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = commandField.getInt(request);
    
            // Then
            assertEquals(0x000F, command); // SMB2_CHANGE_NOTIFY
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            private byte[] setupBuffer;
            private byte[] parametersBuffer;
            private byte[] dataBuffer;
    
            public TestSmbComTransaction(Configuration config, byte command, byte subCommand) {
                super(config, command, subCommand);
            }
    
            @Override
            protected int writeSetupWireFormat(byte[] dst, int dstIndex) {
                if (setupBuffer != null && setupBuffer.length > 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

        }
    
        @Test
        @DisplayName("constructor sets correct command value")
        void constructorSetsCorrectCommand() {
            SmbComLogoffAndX msg = new SmbComLogoffAndX(null);
            assertNotNull(msg, "Message should not be null");
            // SMB_COM_LOGOFF_ANDX = 0x74
            assertEquals((byte) 0x74, msg.command, "Command should be SMB_COM_LOGOFF_ANDX");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java

                    "Command should change to SMB_COM_TRANSACTION_SECONDARY");
        }
    
        @Test
        @DisplayName("Test NT transaction command handling")
        void testNtTransactionCommand() {
            transaction.command = ServerMessageBlock.SMB_COM_NT_TRANSACT;
    
            // First call
            transaction.nextElement();
    
            // Second call should change to NT_TRANSACT_SECONDARY
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java

    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb1.AndXServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 COM_LOCKING_ANDX command implementation.
     *
     * This command locks or unlocks byte ranges within a file. It can also
     * be used to break oplocks and change oplock levels.
     *
     * @author mbechler
     */
    public class SmbComLockingAndX extends AndXServerMessageBlock {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java

        }
    
        /**
         * Test getBatchLimit with SMB_COM_READ_ANDX command.
         */
        @Test
        void testGetBatchLimit_ReadAndX() {
            smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx);
            assertEquals(1, smbComOpenAndX.getBatchLimit(ServerMessageBlock.SMB_COM_READ_ANDX));
        }
    
        /**
         * Test getBatchLimit with a command other than SMB_COM_READ_ANDX.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/main/assemblies/files/fess

            fi
            return $?
        fi
    }
    
    # Print command line usage / help
    usage() {
        echo "Usage: $0 [-vdh] [-p pidfile] [-D prop] [-X prop]"
        echo "Start fess."
        echo "    -d            daemonize (run in background)"
        echo "    -p pidfile    write PID to <pidfile>"
        echo "    -h"
        echo "    --help        print command line options"
        echo "    -v            print fess version, then exit"
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        }
    
        /**
         * @return the command
         */
        @Override
        public final int getCommand() {
            return this.command;
        }
    
        /**
         * @param command
         *            the command to set
         */
        @Override
        public final void setCommand(final int command) {
            this.command = (byte) command;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

        }
    
        @Test
        @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string")
        void testWriteBytesWireFormatHappy() throws UnsupportedEncodingException {
            byte[] buffer = new byte[50];
            int used = cmd.writeBytesWireFormat(buffer, 0);
            // Calculate expected size: 1 byte for command + string bytes + 1 null terminator
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top