Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 326 for FLAGS (0.02 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            this.extFileAttributes = extFileAttributes;
    
            // shareAccess
            this.shareAccess = shareAccess;
    
            // createDisposition
            if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) {
                // truncate the file
                if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) {
                    // create it if necessary
                    createDisposition = FILE_OVERWRITE_IF;
                } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

            offset += 8;
    
            // Directory flags (4 bytes)
            int flags = 0;
            if (cacheScope == DirectoryCacheScope.RECURSIVE_TREE) {
                flags |= DIRECTORY_LEASE_FLAG_RECURSIVE;
            }
            if (notificationEnabled) {
                flags |= DIRECTORY_LEASE_FLAG_NOTIFICATIONS;
            }
            SMBUtil.writeInt4(flags, buffer, offset);
            offset += 4;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

        }
    
        @Test
        @DisplayName("Should set and get flags")
        void testFlags() {
            // Given
            int flags = 0x0001; // Encrypted flag
    
            // When
            transformHeader.setFlags(flags);
    
            // Then
            assertEquals(flags, transformHeader.getFlags());
        }
    
        @Test
        @DisplayName("Should set and get session ID")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

            }
    
            /**
             * DFS flags
             */
            public int flags;
            /**
             * The DFS name
             */
            public String dfs_name;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(this.flags);
                _dst.enc_ndr_referent(this.dfs_name, 1);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

        }
    
        /**
         * Gets the lease flags for this request
         * @return the lease flags
         */
        public int getLeaseFlags() {
            return leaseFlags;
        }
    
        /**
         * Sets the lease flags for this request
         * @param leaseFlags the lease flags to set
         */
        public void setLeaseFlags(int leaseFlags) {
            this.leaseFlags = leaseFlags;
        }
    
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

         * @return the break reason
         */
        public int getBreakReason() {
            return breakReason;
        }
    
        /**
         * Gets the lease flags from the notification
         * @return the lease flags
         */
        public int getLeaseFlags() {
            return flags;
        }
    
        /**
         * Gets the access mask hint for optimizing lease handling
         * @return the access mask hint
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        }
    
        /**
         * Gets the flags for this message.
         *
         * @return the flags
         */
        public final int getFlags() {
            return this.flags;
        }
    
        /**
         * Adds the specified flags to this message.
         *
         * @param flag the flags to add
         */
        public final void addFlags(final int flag) {
            this.flags |= flag;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComNTCreateAndXTest.java

        @Mock
        CIFSContext mockContext;
    
        /**
         * Helper that creates a request instance with the supplied flags.
         * The other arguments are simple constants.
         */
        private SmbComNTCreateAndX createRequest(int flags, int createOptions) {
            return new SmbComNTCreateAndX(mockConfig, "test.txt", flags, SmbConstants.FILE_READ_EA, // desired access
                    0, // shareAccess
                    0, // extFileAttributes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            // Verify lease state at offset 40 (24 + 16 for key)
            assertEquals(testState, SMBUtil.readInt4(buffer, 40));
    
            // Verify lease flags at offset 44 (40 + 4 for state)
            assertEquals(0, SMBUtil.readInt4(buffer, 44));
    
            // Verify lease duration at offset 48 (44 + 4 for flags) - should be 0 (reserved)
            assertEquals(0, SMBUtil.readInt8(buffer, 48));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // Test with both flags
                setPrivateField(response, "shareFlags",
                        Smb2TreeConnectResponse.SMB2_SHAREFLAG_DFS | Smb2TreeConnectResponse.SMB2_SHAREFLAG_DFS_ROOT);
                assertTrue(response.isShareDfs(), "Should detect DFS from combined flags");
    
                // Test without DFS flags
                setPrivateField(response, "shareFlags", 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top