Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 38 for isSMB2 (0.04 seconds)

  1. src/test/java/jcifs/smb/SmbTreeImplTest.java

            assertTrue(tree.isInDomainDfs());
        }
    
        // Test case for treeConnect method with SMB1
        @Test
        void testTreeConnectSmb1() throws CIFSException, IOException {
            when(transport.isSMB2()).thenReturn(false);
            when(transport.getContext()).thenReturn(context);
            when(session.getTargetHost()).thenReturn("localhost");
    
            // Mock negotiate response for SMB1
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        void testIsOpenAndIsStale() throws CIFSException {
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
            when(tree.isSMB2()).thenReturn(true);
    
            // SMB2 branch in ensureOpen uses openUnshared(String, ...)
            when(pipe.openUnshared(anyString(), anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fileHandle);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

            this.openFlags = openFlags;
            this.access = access;
            this.sharing = sharing;
    
            try (SmbTreeHandleInternal th = file.ensureTreeConnected()) {
                this.smb2 = th.isSMB2();
                if (file.getType() != SmbConstants.TYPE_NAMED_PIPE) {
                    try (SmbFileHandle h = ensureOpen()) {}
                    this.openFlags &= ~(SmbConstants.O_CREAT | SmbConstants.O_TRUNC);
                }
    
    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)
  4. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                throw new SmbException("Pipe handle already closed");
            }
    
            if (!isOpen()) {
                try (SmbTreeHandleImpl th = ensureTreeConnected()) {
    
                    if (th.isSMB2()) {
                        this.handle = this.pipe.openUnshared(this.uncPath, 0, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0);
                        return this.handle.acquire();
                    }
    
    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)
  5. src/main/java/jcifs/smb/SmbCopyUtil.java

                final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException {
    
            if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) {
                try {
                    serverSideCopy(src, dest, sh, dh, false);
                    return;
                } catch (final SmbUnsupportedOperationException e) {
    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)
  6. src/main/java/jcifs/smb/SmbFile.java

                }
    
                final Configuration config = h.getConfig();
                SmbBasicFileInfo info;
                boolean haveSize = true, haveAttributes = true;
                long fileSize = 0;
                if (h.isSMB2()) {
                    final Smb2CreateRequest req = new Smb2CreateRequest(config, uncPath);
                    req.setDesiredAccess(access);
                    setCreateDisposition(req, flags);
    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/smb/SmbTransportImplTest.java

            setField(transport, "smb2", true);
            assertTrue(transport.isSMB2());
    
            // 2) smb2 false but negotiated is SMB2 response
            setField(transport, "smb2", false);
            Smb2NegotiateResponse smb2 = new Smb2NegotiateResponse(cfg);
            setField(transport, "negotiated", smb2);
            assertTrue(transport.isSMB2());
    
            // 3) SMB1 negotiation
    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)
  8. src/main/java/jcifs/smb/SmbPipeInputStream.java

         * on the server.
         */
        @Override
        public int available() throws IOException {
            try (SmbFileHandleImpl fd = this.handle.ensureOpen(); SmbTreeHandleImpl th = fd.getTree()) {
                if (th.isSMB2()) {
                    final Smb2IoctlRequest req = new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_PEEK, fd.getFileId());
                    req.setMaxOutputResponse(16);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

            }
            try (SmbTreeHandleImpl th = this.handle.getTree()) {
    
                CommonServerMessageBlockRequest req;
                NotifyResponse resp = null;
                if (th.isSMB2()) {
                    final Smb2ChangeNotifyRequest r = new Smb2ChangeNotifyRequest(th.getConfig(), this.handle.getFileId());
                    r.setCompletionFilter(this.filter);
    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)
  10. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                final SmbComReadAndXResponse response = new SmbComReadAndXResponse(th.getConfig(), b, off);
                do {
                    r = len > this.readSize ? this.readSize : len;
    
                    if (th.isSMB2()) {
                        final Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fh.getFileId(), b, off);
                        request.setOffset(this.fp);
                        request.setReadLength(r);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.8K bytes
    - Click Count (0)
Back to Top