Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for isSMB2 (0.1 sec)

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

        /**
         * Checks if this transport uses the SMB2 protocol.
         *
         * @return whether this is a SMB2 connection
         * @throws SmbException if an error occurs checking protocol version
         */
        boolean isSMB2() throws SmbException;
    
        /**
         * Gets the number of currently pending requests.
         *
         * @return number of inflight requests
         */
        int getInflightRequests();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            try {
                if (t != null && isValid()) {
                    if (log.isDebugEnabled()) {
                        log.debug("Closing file handle " + this);
                    }
    
                    if (t.isSMB2()) {
                        final Smb2CloseRequest req = new Smb2CloseRequest(this.cfg, this.fileId);
                        t.send(req, RequestParam.NO_RETRY);
                    } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            lenient().when(tree.acquire()).thenReturn(tree);
            lenient().when(tree.getTreeId()).thenReturn(treeId);
            lenient().when(tree.isConnected()).thenReturn(connected);
            lenient().when(tree.isSMB2()).thenReturn(smb2);
        }
    
        @Test
        @DisplayName("Constructor with null tree throws NPE (byte[] fid variant)")
        void constructor_nullTree_byteArray_throwsNPE() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            }
    
            final Smb2NegotiateRequest r = (Smb2NegotiateRequest) req;
    
            DialectVersion selected = null;
            for (final DialectVersion dv : DialectVersion.values()) {
                if (!dv.isSMB2()) {
                    continue;
                }
                if (dv.getDialect() == getDialectRevision()) {
                    selected = dv;
                }
            }
    
            if (selected == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  7. 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");
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            when(tree.hasCapability(anyInt())).thenAnswer(inv -> ntSmbsCap && inv.getArgument(0).equals(SmbConstants.CAP_NT_SMBS));
            when(tree.areSignaturesActive()).thenReturn(false);
            when(tree.isSMB2()).thenReturn(smb2);
    
            when(file.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(fh);
            when(fh.acquire()).thenReturn(fh);
            when(fh.isValid()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top