Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for isSMB2 (0.23 sec)

  1. src/test/java/jcifs/tests/FileOperationsTest.java

                    }
                }
                catch ( SmbUnsupportedOperationException e ) {
                    try ( SmbTreeHandle th = defaultShareRoot.getTreeHandle() ) {
                        Assume.assumeTrue("Not SMB2", th.isSMB2());
                    }
                    throw e;
                }
                finally {
                    if ( !renamed && f.exists() ) {
                        f.delete();
                    }
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/OplockTests.java

                  SmbTreeInternal tree = sess.unwrap(SmbSessionInternal.class).getSmbTree(getTestShare(), null).unwrap(SmbTreeInternal.class) ) {
    
                if ( trans.isSMB2() ) {
                    Smb2CreateRequest create = new Smb2CreateRequest(sess.getConfig(), "\\foocc");
                    create.setCreateDisposition(Smb2CreateRequest.FILE_OPEN_IF);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

        /**
         * @param digest
         *            the digest to set
         * @throws SmbException
         */
        private void setDigest ( SMBSigningDigest digest ) throws SmbException {
            if ( this.transport.isSMB2() ) {
                this.digest = digest;
            }
            else {
                this.transport.setDigest(digest);
            }
        }
    
    
        /**
         * @return the digest
         * @throws SmbException
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileOutputStream.java

            this.sharing = sharing;
            this.access = access | SmbConstants.FILE_WRITE_DATA;
    
            try ( SmbTreeHandleImpl th = file.ensureTreeConnected() ) {
                this.smb2 = th.isSMB2();
                try ( SmbFileHandleImpl fh = ensureOpen() ) {
                    if ( append ) {
                        this.fp = fh.getInitialSize();
                    }
                    init(th);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeImpl.java

                // and send it as a separate request instead
                String svc = null;
                int t = this.tid;
                request.setTid(t);
    
                if ( !transport.isSMB2() ) {
                    ServerMessageBlock req = (ServerMessageBlock) request;
                    svc = this.service;
                    if ( svc == null ) {
                        // there still is some kind of race condition, where?
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 29.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/EnumTest.java

                  SmbResource f = root.resolve(makeRandomDirectoryName()) ) {
    
                try ( SmbTreeHandle treeHandle = ( (SmbFile) root ).getTreeHandle() ) {
                    Assume.assumeTrue("Not SMB2", treeHandle.isSMB2());
                }
    
                f.mkdir();
                try {
    
                    for ( int i = 0; i < 5; i++ ) {
                        // each entry 94 byte + 2 * name length
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFile.java

                }
    
                Configuration config = h.getConfig();
                SmbBasicFileInfo info;
                boolean haveSize = true, haveAttributes = true;
                long fileSize = 0;
                if ( h.isSMB2() ) {
                    Smb2CreateRequest req = new Smb2CreateRequest(config, uncPath);
                    req.setDesiredAccess(access);
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

            }
            return r;
        }
    
    
        /**
         * @return whether this is SMB2 transport
         * @throws SmbException
         */
        @Override
        public boolean isSMB2 () throws SmbException {
            return this.smb2 || getNegotiateResponse() instanceof Smb2NegotiateResponse;
        }
    
    
        /**
         * @param digest
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/ConcurrencyTest.java

                      SmbTreeInternal tree = sess.unwrap(SmbSessionInternal.class).getSmbTree(getTestShare(), null).unwrap(SmbTreeInternal.class) ) {
    
                    if ( trans.isSMB2() ) {
                        Smb2CreateRequest create = new Smb2CreateRequest(sess.getConfig(), "\\foocc");
                        create.setCreateDisposition(Smb2CreateRequest.FILE_OPEN_IF);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
Back to top