Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 22 for hasCapability (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

                        req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs));
                        dh.send(req);
                    } else if (dh.hasCapability(SmbConstants.CAP_NT_SMBS)) {
                        // use the open file descriptor
                        dh.send(new Trans2SetFileInformation(dh.getConfig(), dfd.getFid(), attrs, ctime, mtime, atime),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbFileOutputStream.java

            this.writeSize = sendBufferSize - 70;
    
            this.useNTSmbs = th.hasCapability(SmbConstants.CAP_NT_SMBS);
            if (!this.useNTSmbs) {
                log.debug("No support for NT SMBs");
            }
    
            // there seems to be a bug with some servers that causes corruption if using signatures +
            // CAP_LARGE_WRITE
            if (th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                        th.send(new TransWaitNamedPipe(th.getConfig(), this.uncPath), new TransWaitNamedPipeResponse(th.getConfig()));
                    }
    
                    if (th.hasCapability(SmbConstants.CAP_NT_SMBS) || this.uncPath.startsWith("\\pipe\\")) {
                        this.handle = this.pipe.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0);
                    } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            @DisplayName("LargeReadX splits count across maxCount/openTimeout")
            void largeReadXSetsRequestFields() throws Exception {
                when(mockTree.isSMB2()).thenReturn(false);
                when(mockTree.hasCapability(SmbConstants.CAP_LARGE_READX)).thenReturn(true);
                when(mockTree.areSignaturesActive()).thenReturn(false);
                when(mockConfig.getReceiveBufferSize()).thenReturn(0x200000); // large to allow big block size
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.isSMB2()).thenReturn(smb2);
            when(tree.getReceiveBufferSize()).thenReturn(4096);
            when(tree.getMaximumBufferSize()).thenReturn(65535);
            when(tree.hasCapability(anyInt())).thenReturn(false);
            return new SmbPipeInputStream(handle, tree);
        }
    
        private SmbPipeInputStream newStreamWithMinimalStubs(boolean smb2) throws CIFSException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
        @Override
        public boolean isFailed() {
            final Socket s = this.socket;
            return super.isFailed() || s == null || s.isClosed();
        }
    
        @Override
        public boolean hasCapability(final int cap) throws SmbException {
            return getNegotiateResponse().haveCapabilitiy(cap);
        }
    
        /**
         * @return the negotiated
         * @throws SmbException
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

            this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC); /* in case close and reopen */
            writeSize = file.tree.session.transport.snd_buf_size - 70;
    
            useNTSmbs = file.tree.session.transport.hasCapability(SmbConstants.CAP_NT_SMBS);
            if (useNTSmbs) {
                reqx = new SmbComWriteAndX();
                rspx = new SmbComWriteAndXResponse();
            } else {
                req = new SmbComWrite();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbTransportImplTest.java

            setField(transport, "negotiated", nego);
            when(nego.haveCapabilitiy(SmbConstants.CAP_DFS)).thenReturn(true);
    
            // Act & Assert
            assertTrue(transport.hasCapability(SmbConstants.CAP_DFS));
            verify(nego, times(1)).haveCapabilitiy(SmbConstants.CAP_DFS);
        }
    
        @Test
        @DisplayName("SMB version detection via flag or response type")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/MultiChannelManager.java

                // Ensure the transport is connected and ready
                transport.ensureConnected();
    
                // Verify multi-channel capability (SMB3+ required)
                if (!transport.isSMB2() || !transport.hasCapability(0x00000008)) { // SMB2_GLOBAL_CAP_MULTI_CHANNEL
                    throw new CIFSException("Server does not support SMB multi-channel capability");
                }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

                this.readSizeFile = th.getReceiveBufferSize();
                return;
            }
    
            this.readSize = Math.min(th.getReceiveBufferSize() - 70, th.getMaximumBufferSize() - 70);
    
            if (th.hasCapability(SmbConstants.CAP_LARGE_READX)) {
                this.largeReadX = true;
                this.readSizeFile =
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.6K bytes
    - Click Count (0)
Back to Top