- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 34 for Capability (0.84 sec)
-
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); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
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) -
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) -
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 serverRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
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 // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
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) -
src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
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) -
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) -
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)