- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 30 for isSMB2 (0.34 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java
return delegate.getSmbSession(tf, targetHost, targetDomain); } @Override public boolean isSMB2() throws SmbException { return delegate.isSMB2(); } @Override public int getInflightRequests() { return delegate.getInflightRequests(); } @Override public CIFSContext getContext() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 8.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 30K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
lenient().when(mockTreeHandle.getConfig()).thenReturn(mockConfig); } @Test void testWriteSingleByte() throws IOException, CIFSException { // Given when(mockTreeHandle.isSMB2()).thenReturn(true); when(mockTreeHandle.getSendBufferSize()).thenReturn(65536); when(mockFileHandle.isValid()).thenReturn(false, true); // First false to trigger ensureOpen, then true
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
private SmbPipeInputStream newStreamWithInit(boolean smb2) throws CIFSException { when(handle.getPipe()).thenReturn(pipe); // init(th) behavior inside SmbFileInputStream constructor when(tree.isSMB2()).thenReturn(smb2); when(tree.getReceiveBufferSize()).thenReturn(4096); when(tree.getMaximumBufferSize()).thenReturn(65535); when(tree.hasCapability(anyInt())).thenReturn(false);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\foo"); when(pipe.ensureTreeConnected()).thenReturn(tree); when(tree.acquire()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); // simplifies stream init when(tree.getReceiveBufferSize()).thenReturn(4096); // Act: first calls construct streams, second calls return cached
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 16.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@Mock Configuration mockConfig; private SmbFileInputStream newStream() throws SmbException { // Constructor that avoids external I/O; stays in-memory when(mockTree.isSMB2()).thenReturn(true); // default SMB2 for simple happy-path return new SmbFileInputStream(mockFile, mockTree, mockHandle); } @BeforeEach void setUp() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception { when(handle.isValid()).thenReturn(true); when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(handle.getFileId()).thenReturn(fileId);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
try { entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress()); } catch (final IOException ioe) { if (th.isSMB2()) { throw ioe; } log.debug("doMsrpcShareEnum failed", ioe); entries = doNetShareEnum(th); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.3K bytes - Click Count (0) -
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) -
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)