Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 20 for CAP_NT_SMBS (0.14 seconds)

  1. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

                    req = r;
                } else {
                    if (!th.hasCapability(SmbConstants.CAP_NT_SMBS)) {
                        throw new SmbUnsupportedOperationException("Not supported without CAP_NT_SMBS");
                    }
    
                    /*
                     * NtTrans Notify Change Request / Response
                     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        int CAP_MPX_MODE = 0x0002;
        /** Unicode capability */
        int CAP_UNICODE = 0x0004;
        /** Large files capability */
        int CAP_LARGE_FILES = 0x0008;
        /** NT SMBs capability */
        int CAP_NT_SMBS = 0x0010;
        /** RPC remote APIs capability */
        int CAP_RPC_REMOTE_APIS = 0x0020;
        /** 32-bit status codes capability */
        int CAP_STATUS32 = 0x0040;
        /** Level II oplocks capability */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            when(handle.getTree()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(false);
            when(tree.getConfig()).thenReturn(mock(Configuration.class));
            when(tree.hasCapability(SmbConstants.CAP_NT_SMBS)).thenReturn(true);
            when(handle.getFid()).thenReturn(fid);
            when(tree.send(any(CommonServerMessageBlockRequest.class), any(), any(), any())).thenReturn(resp);
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/SmbResource.java

         *            the last access time as milliseconds since Jan 1, 1970
         * @throws CIFSException if an error occurs modifying the resource
         * @throws jcifs.smb.SmbUnsupportedOperationException
         *             if CAP_NT_SMBS is unavailable
         */
        void setFileTimes(long createTime, long lastModified, long lastAccess) throws CIFSException;
    
        /**
         * Set the last access time of the file. The time is specified as milliseconds
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  5. src/main/java/jcifs/SmbConstants.java

         */
        int CAP_UNICODE = 0x0004;
        /**
         * Large files are supported capability.
         */
        int CAP_LARGE_FILES = 0x0008;
        /**
         * NT SMBs are supported capability.
         */
        int CAP_NT_SMBS = 0x0010;
        int CAP_PERSISTENT_HANDLES = 0x0002;
        /**
         * RPC remote APIs are supported capability.
         */
        int CAP_RPC_REMOTE_APIS = 0x0020;
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbFile.java

            }
    
            try (SmbTreeHandleImpl th = ensureTreeConnected()) {
                if (!th.isSMB2() && !th.hasCapability(SmbConstants.CAP_NT_SMBS)) {
                    throw new SmbUnsupportedOperationException("Not supported without CAP_NT_SMBS");
                }
                return new SmbWatchHandleImpl(openUnshared(O_RDONLY, READ_CONTROL | GENERIC_READ, DEFAULT_SHARING, 0, 1), filter, recursive);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            buffer.putInt(8192); // maxBufferSize
            buffer.putInt(65536); // maxRawSize
            buffer.putInt(123456789); // sessionKey
            buffer.putInt(SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS); // capabilities
            buffer.putLong(new Date().getTime()); // serverTime
            buffer.putShort((short) -480); // serverTimeZone
            buffer.put((byte) 8); // encryptionKeyLength
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(tree.acquire()).thenReturn(tree);
    
            // Setup for ensureOpen
            when(tree.isSMB2()).thenReturn(false);
            when(tree.hasCapability(SmbConstants.CAP_NT_SMBS)).thenReturn(true);
            when(pipe.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh);
            when(fh.acquire()).thenReturn(fh);
            lenient().when(fh.isValid()).thenReturn(true);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            // Configure mock transport
            mockTransport.server = serverData;
            mockTransport.sessionKey = 0x12345678;
            mockTransport.capabilities = SmbConstants.CAP_UNICODE | SmbConstants.CAP_NT_SMBS;
            mockTransport.snd_buf_size = 16644;
            mockTransport.maxMpxCount = 50;
    
            // Configure mock session
            mockSession.transport = mockTransport;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

        @DisplayName("Capability flags are correct")
        void capabilityFlagsTest() {
            // Test individual capability values
            assertEquals(0x0004, SmbConstants.CAP_UNICODE);
            assertEquals(0x0010, SmbConstants.CAP_NT_SMBS);
            assertEquals(0x0040, SmbConstants.CAP_STATUS32);
            assertEquals(0x1000, SmbConstants.CAP_DFS);
            assertEquals(0x80000000, SmbConstants.CAP_EXTENDED_SECURITY);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.2K bytes
    - Click Count (0)
Back to Top