- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 325 for 0x01 (0.03 sec)
-
src/main/java/jcifs/smb1/smb1/SmbFile.java
* * @see java.io.File */ public class SmbFile extends URLConnection implements SmbConstants { static final int O_RDONLY = 0x01; static final int O_WRONLY = 0x02; static final int O_RDWR = 0x03; static final int O_APPEND = 0x04; // Open Function Encoding // create if the file does not exist static final int O_CREAT = 0x0010; // fail if the file exists
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
int written = trans2SetFileInfo.writeSetupWireFormat(buffer, 0); // Should write 2 bytes: subcommand and 0x00 assertEquals(2, written); assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, buffer[0]); assertEquals(0x00, buffer[1]); } @Test @DisplayName("Test writeSetupWireFormat with offset") void testWriteSetupWireFormatWithOffset() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
* The header format is: * - Byte 0: Message type (0x00 for SESSION_MESSAGE) * - Byte 1: High bit of 17-bit length field * - Bytes 2-3: Lower 16 bits of length field */ private static byte[] messageHeader(int length) { byte[] h = new byte[4]; h[0] = (byte) SessionServicePacket.SESSION_MESSAGE; h[1] = (byte) ((length >> 16) & 0x01); h[2] = (byte) ((length >> 8) & 0xFF);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
* implementation. */ /** SMB2 negotiate protocol command */ protected static final short SMB2_NEGOTIATE = 0x00; /** SMB2 session setup command */ protected static final short SMB2_SESSION_SETUP = 0x01; /** SMB2 logoff command */ protected static final short SMB2_LOGOFF = 0x02; /** SMB2 tree connect command */ protected static final short SMB2_TREE_CONNECT = 0x0003;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
} @Test @DisplayName("setAttributes should accept valid attributes") void testSetAttributes() throws CIFSException { // Given int newAttributes = 0x01; // FILE_ATTRIBUTE_READONLY // When/Then assertDoesNotThrow(() -> mockResource.setAttributes(newAttributes), "Setting attributes should not throw exception");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameTest.java
// Check encoded name (TEST -> encoded as pairs) // T = 0x54 -> upper nibble: 0x5 -> 0x46 (F), lower nibble: 0x4 -> 0x45 (E) assertEquals('F', dst[1]); // (0x54 >> 4) + 0x41 = 0x46 = 'F' assertEquals('E', dst[2]); // (0x54 & 0x0F) + 0x41 = 0x45 = 'E' // Check padding (positions 8-30 should be 'CA' pairs for spaces) for (int i = 8; i < 31; i += 2) { assertEquals('C', dst[i + 1]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
} } else if (host.length() == 0) { try { final Address addr = this.ctx.getNameServiceClient().getNbtByName(NbtAddress.MASTER_BROWSER_NAME, 0x01, null); this.addresses = new UniAddress[1]; this.addresses[0] = this.ctx.getNameServiceClient().getByName(addr.getHostAddress());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 23.6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/samr.java
* This operation releases resources associated with the handle. */ public static class SamrCloseHandle extends DcerpcMessage { @Override public int getOpnum() { return 0x01; } /** The return value of the operation */ public int retval; /** The handle to be closed */ public rpc.policy_handle handle; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/samr.java
* This operation releases resources associated with the handle. */ public static class SamrCloseHandle extends DcerpcMessage { @Override public int getOpnum() { return 0x01; } /** The return value of the operation */ public int retval; /** The handle to be closed */ public rpc.policy_handle handle; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
static final byte[] header = { (byte) 0xFF, (byte) 'S', (byte) 'M', (byte) 'B', (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 }; static void writeInt2(final long val, final byte[] dst, int dstIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0)