Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for ServerMessageBlock (0.36 sec)

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

    import jcifs.Configuration;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 COM_SET_INFORMATION command implementation.
     *
     * This command sets file attributes and last write time for a file or directory.
     *
     * @author mbechler
     */
    public class SmbComSetInformation extends ServerMessageBlock {
    
        private final int fileAttributes;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

    import jcifs.internal.SmbNegotiationRequest;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.util.Strings;
    
    /**
     * SMB1 Negotiate Protocol request message.
     *
     * This command is used to negotiate the SMB protocol dialect
     * and security parameters between client and server.
     */
    public class SmbComNegotiate extends ServerMessageBlock implements SmbNegotiationRequest {
    
        private final boolean signingEnforced;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        void testConstructor() {
            // Verify that the command is set to SMB_COM_NEGOTIATE
            assertEquals(ServerMessageBlock.SMB_COM_NEGOTIATE, smbComNegotiate.command,
                    "Constructor should set the command to SMB_COM_NEGOTIATE.");
            // Verify that flags2 is set to the default flags
            assertEquals(ServerMessageBlock.DEFAULT_FLAGS2, smbComNegotiate.flags2, "Constructor should set flags2 to DEFAULT_FLAGS2.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java

     */
    
    package jcifs.smb1.smb1;
    
    import java.util.Date;
    
    import jcifs.smb1.util.Hexdump;
    
    class SmbComQueryInformationResponse extends ServerMessageBlock implements Info {
    
        private int fileAttributes = 0x0000;
        private long lastWriteTime = 0L;
        private final long serverTimeZoneOffset;
        private int fileSize = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

        void setUp() {
            trans2SetFileInformation = new Trans2SetFileInformation(fid, attributes, createTime, lastWriteTime);
        }
    
        @Test
        void testConstructor() {
            // Then
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, trans2SetFileInformation.command);
            assertEquals(Trans2SetFileInformation.TRANS2_SET_FILE_INFORMATION, trans2SetFileInformation.subCommand);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.SmbConstants;
    import jcifs.internal.Request;
    import jcifs.internal.smb1.AndXServerMessageBlock;
    import jcifs.internal.smb1.ServerMessageBlock;
    import jcifs.internal.util.SMBUtil;
    import jcifs.util.Hexdump;
    
    /**
     * SMB1 NT Create AndX request message.
     *
     * This command is used to create or open a file with extended
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top