- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for isSMB2 (0.08 sec)
-
src/test/java/jcifs/SmbTreeHandleTest.java
} /** * Test for isSMB2() method. * Verifies that the method returns the correct SMB protocol version status. */ @Test void testIsSMB2() { when(smbTreeHandle.isSMB2()).thenReturn(true); assertTrue(smbTreeHandle.isSMB2(), "isSMB2() should return true"); when(smbTreeHandle.isSMB2()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/DialectVersionTest.java
assertFalse(DialectVersion.SMB1.isSMB2()); // SMB2+ versions should be identified as SMB2 assertTrue(DialectVersion.SMB202.isSMB2()); assertTrue(DialectVersion.SMB210.isSMB2()); assertTrue(DialectVersion.SMB300.isSMB2()); assertTrue(DialectVersion.SMB302.isSMB2()); assertTrue(DialectVersion.SMB311.isSMB2()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java
this.signingEnforced = signingEnforced; setFlags2(config.getFlags2()); if (config.getMinimumVersion().isSMB2()) { this.dialects = new String[] { "SMB 2.???", "SMB 2.002" }; } else if (config.getMaximumVersion().isSMB2()) { this.dialects = new String[] { "NT LM 0.12", "SMB 2.???", "SMB 2.002" }; } else { this.dialects = new String[] { "NT LM 0.12" };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
assertTrue(tree.isInDomainDfs()); } // Test case for treeConnect method with SMB1 @Test void testTreeConnectSmb1() throws CIFSException, IOException { when(transport.isSMB2()).thenReturn(false); when(transport.getContext()).thenReturn(context); when(session.getTargetHost()).thenReturn("localhost"); // Mock negotiate response for SMB1
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
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() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 8.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbTreeHandle.java
*/ boolean isSameTree(SmbTreeHandle th); /** * Checks if this tree handle uses SMB2 or later protocol * @return whether this tree handle uses SMB2+ */ boolean isSMB2(); /** * Gets the remote host name for this tree connection * @return the remote host name */ String getRemoteHostName(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
* on the server. */ @Override public int available() throws IOException { try (SmbFileHandleImpl fd = this.handle.ensureOpen(); SmbTreeHandleImpl th = fd.getTree()) { if (th.isSMB2()) { final Smb2IoctlRequest req = new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_PEEK, fd.getFileId()); req.setMaxOutputResponse(16);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbWatchHandleImpl.java
} try (SmbTreeHandleImpl th = this.handle.getTree()) { CommonServerMessageBlockRequest req; NotifyResponse resp = null; if (th.isSMB2()) { final Smb2ChangeNotifyRequest r = new Smb2ChangeNotifyRequest(th.getConfig(), this.handle.getFileId()); r.setCompletionFilter(this.filter);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096); // Act return new SmbPipeOutputStream(handle, tree); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/DialectVersion.java
this.smb2 = true; this.dialect = dialectId; } /** * Check if this is an SMB2 dialect version * * @return the smb2 */ public final boolean isSMB2() { return this.smb2; } /** * Get the SMB2 dialect identifier * * @return the dialect */ public final int getDialect() { if (!this.smb2) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.3K bytes - Viewed (0)