- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 121 for ServerMessageBlock (2.56 sec)
-
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
buf[1] = 0x66; // andxCommand ServerMessageBlock.writeInt2(50, buf, 3); // andxOffset ServerMessageBlock.writeInt2(20, buf, 9); // byteCount for main block // At offset 50, the implementation writes andx.wordCount (0) to buffer // Then reads byteCount at offset 51 ServerMessageBlock.writeInt2(20, buf, 51); int n = block.readAndXWireFormat(buf, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComRename.java
import jcifs.SmbConstants; import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * SMB1 COM_RENAME command implementation. * * This command renames a file or directory on the SMB server. * It takes an old filename and new filename and performs the rename operation. */ public class SmbComRename extends ServerMessageBlock { private final int searchAttributes;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.MockitoAnnotations; import jcifs.Configuration; import jcifs.config.PropertyConfiguration; import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.smb1.trans.SmbComTransaction; class Trans2FindFirst2ResponseTest { private Trans2FindFirst2Response response; private Configuration config; @BeforeEachRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java
import jcifs.internal.SmbBasicFileInfo; import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * Response for SMB1 COM_QUERY_INFORMATION command. * * This response contains file attributes, size, and timestamps * for the requested file or directory. */ public class SmbComQueryInformationResponse extends ServerMessageBlock implements SmbBasicFileInfo {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
SmbSession session = new SmbSession(addr, 445, inet, 0, auth); // prepare a dummy request/response using a real SMB block type ServerMessageBlock req = new SmbComOpenAndX("test.txt", 0, 0, null); ServerMessageBlock resp = new SmbComOpenAndX("test.txt", 0, 0, null); resp.received = true; session.transport(); // initialise transport
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
import static org.mockito.Mockito.when; import java.nio.charset.StandardCharsets; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import jcifs.Configuration; import jcifs.internal.smb1.ServerMessageBlock; /** * Tests for the SmbComCreateDirectory class. */ class SmbComCreateDirectoryTest { private Configuration mockConfig; @BeforeEach void setUp() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSeek.java
import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; /** * SMB1 COM_SEEK command implementation. * * This command changes the current file position pointer for a file. * It allows seeking to different positions within an open file. * * @author mbechler */ public class SmbComSeek extends ServerMessageBlock { /** * Constructs a seek command. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
assertNotNull(anonSetup); assertEquals(ServerMessageBlock.SMB_COM_SESSION_SETUP_ANDX, anonSetup.command); } @Test void testConstructorWithSecurityShare() throws Exception { // Test with SECURITY_SHARE mode mockTransport.server.security = ServerMessageBlock.SECURITY_SHARE;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
// Test the decode method which is inherited from ServerMessageBlock byte[] buffer = new byte[256]; // Set up a minimal SMB header (size 32 bytes) // SMB signature buffer[0] = (byte) 0xFF; buffer[1] = 'S'; buffer[2] = 'M'; buffer[3] = 'B'; // Command - SMB_COM_TRANSACTION2 buffer[4] = ServerMessageBlock.SMB_COM_TRANSACTION2;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXResponse.java
*/ package jcifs.internal.smb1.com; import jcifs.Configuration; import jcifs.internal.smb1.AndXServerMessageBlock; import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; /** * SMB1 Session Setup AndX Response message. * * This response contains information about the established session,
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.7K bytes - Viewed (0)