Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 121 for ServerMessageBlock (0.48 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComWriteResponse.java

    import jcifs.Configuration;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 Write Response message.
     *
     * This response contains information about the write operation,
     * including the number of bytes that were written to the file.
     */
    public class SmbComWriteResponse extends ServerMessageBlock {
    
        private long count;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            // Verify that SmbComNtTransaction extends SmbComTransaction
            assertTrue(transaction instanceof SmbComTransaction);
    
            // Verify that it's also a ServerMessageBlock
            assertTrue(transaction instanceof ServerMessageBlock);
        }
    
        @Test
        @DisplayName("Test createCancel with zero MID")
        void testCreateCancelWithZeroMid() {
            // Set MID to 0
            transaction.setMid(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComCreateDirectory.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.smb1.smb1;
    
    class SmbComCreateDirectory extends ServerMessageBlock {
    
        SmbComCreateDirectory(final String directoryName) {
            this.path = directoryName;
            command = SMB_COM_CREATE_DIRECTORY;
        }
    
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java

        }
    
        @Test
        public void testConstructor() {
            // Test if the constructor sets the file name and command correctly
            assertEquals(TEST_FILE_NAME, smbComQueryInformation.path);
            assertEquals(ServerMessageBlock.SMB_COM_QUERY_INFORMATION, smbComQueryInformation.command);
        }
    
        @Test
        public void testWriteParameterWordsWireFormat() {
            // This method is expected to do nothing and return 0
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

                    current = current.getSuperclass();
                }
            }
            throw new NoSuchFieldException(fieldName);
        }
    
        private byte getCommand(ServerMessageBlock smb) {
            try {
                Field field = findField(ServerMessageBlock.class, "command");
                field.setAccessible(true);
                return (byte) field.get(smb);
            } catch (Exception e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            // Last Write Time (UTime): A sample timestamp in milliseconds
            long sampleTimeMillis = 1672531200000L; // Represents a specific date in milliseconds
            ServerMessageBlock.writeUTime(sampleTimeMillis, buffer, 2);
            // File Size: 1024 bytes
            ServerMessageBlock.writeInt4(1024, buffer, 6);
    
            response.wordCount = 10; // Must be non-zero to read
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComTreeDisconnect.java

    import jcifs.Configuration;
    import jcifs.internal.smb1.ServerMessageBlock;
    
    /**
     * SMB1 COM_TREE_DISCONNECT command implementation.
     *
     * This command disconnects from a tree connection (share) on the server.
     * It releases the tree ID and terminates access to the share.
     */
    public class SmbComTreeDisconnect extends ServerMessageBlock {
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java

        }
    
        @Test
        @DisplayName("constructor with mock andx properly sets andx field")
        void constructorWithMockAndx() {
            // Create a mock ServerMessageBlock
            ServerMessageBlock mockAndx = mock(ServerMessageBlock.class);
            mockAndx.command = (byte) 0x2E; // Set a different command value (e.g., SMB_COM_READ_ANDX)
    
            // Create SmbComLogoffAndX with the mock
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComBlankResponse.java

     */
    
    package jcifs.internal.smb1.com;
    
    import jcifs.Configuration;
    import jcifs.internal.smb1.ServerMessageBlock;
    
    /**
     * SMB1 blank response message.
     *
     * This is a generic response message for SMB commands that don't
     * return specific data in their response.
     */
    public class SmbComBlankResponse extends ServerMessageBlock {
    
        /**
         * Creates a new blank SMB1 response.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java

            // Verify command changed to secondary
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION_SECONDARY, transaction.command,
                    "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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top