Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for Capability (4.65 sec)

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

            // Arrange
            when(handle.hasCapability(anyInt())).thenThrow(new CIFSException("capability check failed"));
    
            // Act + Assert
            CIFSException ex = assertThrows(CIFSException.class, () -> handle.hasCapability(42));
            assertEquals("capability check failed", ex.getMessage());
            verify(handle).hasCapability(42);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. docs/SMB3_IMPLEMENTATION_PLAN.md

    - [ ] Implement handle state serialization
    - [ ] Create reconnection logic with handle replay
    - [ ] Add timeout management for durable handles
    - [ ] Implement handle lease association
    - [ ] Add persistent handle capability negotiation
    - [ ] Create handle cache for reconnection
    
    #### 2.3 Integration Points
    - Extend `SmbFile` with persistent handle support
    - Modify `SmbSession` for handle replay during reconnection
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/MultiChannelManager.java

                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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

        /**
         * Initialize multi-channel support
         *
         * @throws IOException if initialization fails
         */
        public void initializeMultiChannel() throws IOException {
            // Check server capability
            if (!supportsMultiChannel()) {
                log.info("Server does not support multi-channel");
                return;
            }
    
            // Query network interfaces from server
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            // When
            int mode = response.getSecurityMode();
    
            // Then
            assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, mode);
        }
    
        @Test
        @DisplayName("Should check capability correctly")
        void testHaveCapability() throws Exception {
            // Given
            setPrivateField(response, "commonCapabilities", 0x2F); // 0010 1111
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            response.getServerData().smaxMpxCount = 1;
            response.getServerData().maxBufferSize = 16384;
    
            assertTrue(response.isValid(mockContext, request));
            // After negotiation, check if unicode capability is preserved
            assertTrue((response.getNegotiatedCapabilities() & SmbConstants.CAP_UNICODE) != 0);
        }
    
        @Test
        public void testIsValidWithInvalidDialect() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

                if (message.contains("hardware") || message.contains("device not found") || message.contains("driver")
                        || message.contains("not supported") || message.contains("capability")) {
                    return true;
                }
            }
    
            // If we've had many errors, consider fallback
            double errorRate = statistics.getErrorRate();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbConstantsTest.java

            assertEquals(0x4000, SmbConstants.FLAGS2_STATUS32);
            assertEquals(0x8000, SmbConstants.FLAGS2_UNICODE);
        }
    
        @Test
        @DisplayName("Should define capability constants")
        void testCapabilityConstants() {
            assertEquals(0x0000, SmbConstants.CAP_NONE);
            assertEquals(0x0001, SmbConstants.CAP_RAW_MODE);
            assertEquals(0x0002, SmbConstants.CAP_MPX_MODE);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportImplTest.java

            when(s.isClosed()).thenReturn(true);
            assertTrue(transport.isDisconnected());
            assertTrue(transport.isFailed());
        }
    
        @Test
        @DisplayName("capability query delegates to negotiation state")
        void hasCapability_delegates() throws Exception {
            // Arrange
            SmbNegotiationResponse nego = mock(SmbNegotiationResponse.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        }
    
        // SMB1 path: without CAP_NT_SMBS it should throw SmbUnsupportedOperationException
        @Test
        @DisplayName("watch() SMB1 without capability throws unsupported")
        void watch_smb1_noCapability_throwsUnsupported() throws Exception {
            when(handle.isValid()).thenReturn(true);
            when(handle.getTree()).thenReturn(tree);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top