- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 254 for shares (3.16 sec)
-
src/main/java/jcifs/internal/smb1/com/SmbComTreeDisconnect.java
* SMB1 COM_TREE_DISCONNECT command implementation. * * This command disconnects from a tree connection (share) on the server. * It releases the tree ID and terminates access to the share. */ public class SmbComTreeDisconnect extends ServerMessageBlock { /** * Constructs a tree disconnect request to close a connection to a shared resource. * * @param config the configuration to use */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
SmbTreeConnection c1 = newConn(); SmbTreeConnection c2 = newConn(); SmbTreeImpl shared = mock(SmbTreeImpl.class); when(shared.acquire(false)).thenReturn(shared); setTree(c1, shared); setTree(c2, shared); assertTrue(c1.isSame(c2)); SmbTreeImpl other = mock(SmbTreeImpl.class); when(other.acquire(false)).thenReturn(other);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbShareInfo.java
*/ protected String remark; /** * Default constructor for SMB share information. */ public SmbShareInfo() { } /** * Constructs SMB share information with specified properties. * * @param netName the network name of the share * @param type the type of the share * @param remark the descriptive comment about the share */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfo.java
*/ public MsrpcShareGetInfo(final String server, final String sharename) { super(server, sharename, 502, new srvsvc.ShareInfo502()); this.ptype = 0; this.flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG; } /** * Returns the security descriptor of the share as an array of ACEs. * * @return an array of ACE objects representing the share's security descriptorRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java
serverAddress = InetAddress.getByName("192.168.1.100"); registration = new WitnessRegistration("\\\\server\\share", serverAddress, WitnessServiceType.FILE_SERVER_WITNESS); } @Test void testRegistrationCreation() { assertNotNull(registration.getRegistrationId()); assertEquals("\\\\server\\share", registration.getShareName()); assertEquals(serverAddress, registration.getServerAddress());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share")); // Test forward slashes assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "//server/share")); // Test with spaces assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\my share\\file.txt")); // Test with special characters
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
} @Test @DisplayName("Test getPath returns correct formatted path") void testGetPath() { request = new Smb2CreateRequest(mockConfig, "share\\file.txt"); assertEquals("\\share\\file.txt", request.getPath()); request.setPath("newpath\\newfile.txt"); assertEquals("\\newpath\\newfile.txt", request.getPath()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java
* * This command is used to connect to a shared resource * on the server, such as a file share or printer. * * @author mbechler */ public class Smb2TreeConnectRequest extends ServerMessageBlock2Request<Smb2TreeConnectResponse> { private int treeFlags; private final String path; /** * Creates a new SMB2 tree connect request to establish a connection to a network share. *
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
ctr0.count = 2; ctr0.array = new srvsvc.ShareInfo0[2]; ctr0.array[0] = new srvsvc.ShareInfo0(); ctr0.array[0].netname = "Share1"; ctr0.array[1] = new srvsvc.ShareInfo0(); ctr0.array[1].netname = "Share2"; // Set up mocks mockDeferredBuffer.index = 0; // Set field directly mockDeferredBuffer.deferred = mockDeferredBuffer;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
void testGetShare() { // Act & Assert assertEquals("share", smbFile.getShare()); } @Test void testGetUncPath() { // Arrange doReturn("\\localhost\share\file.txt").when(smbFile).getUncPath(); // Act & Assert assertEquals("\\localhost\share\file.txt", smbFile.getUncPath()); } } @Nested
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0)