Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for FID (1.47 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

        @DisplayName("Test toString with different FID values")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 100, 0xFFFF })
        void testToStringWithDifferentFids(int fid) {
            trans2SetFileInfo = new Trans2SetFileInformation(config, fid, mockFileInfo);
    
            String result = trans2SetFileInfo.toString();
    
            assertNotNull(result);
            assertTrue(result.contains("fid=" + fid));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

            assertEquals(0, response.deviceState);
            assertEquals(0, response.action);
            assertEquals(0, response.serverFid);
        }
    
        @Test
        void testSetFid() {
            response.fid = 123;
            assertEquals(123, response.fid);
        }
    
        @Test
        void testSetFileAttributes() {
            response.fileAttributes = 0x20; // ATTR_ARCHIVE
            assertEquals(0x20, response.fileAttributes);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndXResponse.java

            return 0;
        }
    
        @Override
        public String toString() {
            return ("SmbComNTCreateAndXResponse[" + super.toString() + ",oplockLevel=" + oplockLevel + ",fid=" + fid + ",createAction=0x"
                    + Hexdump.toHexString(createAction, 4) + ",creationTime=" + new Date(creationTime) + ",lastAccessTime="
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndXResponse.java

         */
        public final byte getOplockLevel() {
            return this.oplockLevel;
        }
    
        /**
         * Gets the file identifier.
         *
         * @return the fid
         */
        public final int getFid() {
            return this.fid;
        }
    
        /**
         * Gets the create action taken.
         *
         * @return the createAction
         */
        public final int getCreateAction() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            int r, n;
            final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off);
            do {
                r = len > readSize ? readSize : len;
                file.send(new SmbComReadAndX(file.fid, fp, r, null), response);
                n = response.dataLength;
                if (n <= 0) {
                    return (int) (fp - start > 0L ? fp - start : -1);
                }
                fp += n;
                len -= n;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            assertTrue(s2.contains("77"), "Expected numeric fid in string");
        }
    
        static Stream<Arguments> equalsHashParams() {
            return Stream.of(
                    // byte[] id based equality (same id and tree id)
                    Arguments.of(new byte[] { 0x0A, 0x0B }, new byte[] { 0x0A, 0x0B }, 100L, true),
                    // fid based equality (null fileId, same fid and tree id)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/TransTransactNamedPipe.java

         *
         * @param config the configuration to use
         * @param fid the file ID of the named pipe
         * @param data the data buffer to send
         * @param off the offset in the data buffer
         * @param len the length of data to send
         */
        public TransTransactNamedPipe(final Configuration config, final int fid, final byte[] data, final int off, final int len) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

            // - 3 zero bytes (padding and no FID)
            int written = pipe.writeSetupWireFormat(dst, 0);
    
            assertEquals(4, written, "Setup should write 4 bytes");
            assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, dst[0], "First byte should be subCommand");
            assertEquals(0, dst[1], "Second byte should be 0");
            assertEquals(0, dst[2], "Third byte should be 0 (no FID)");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            file.open(openFlags, access, SmbFile.ATTR_NORMAL, 0);
    
            /*
             * Read AndX Request / Response
             */
    
            if (LogStream.level >= 4) {
                SmbFile.log.println("read: fid=" + file.fid + ",off=" + off + ",len=" + len);
            }
    
            final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off);
    
            if (file.type == SmbFile.TYPE_NAMED_PIPE) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

                SmbFile.log.println("write: fid=" + file.fid + ",off=" + off + ",len=" + len);
            }
    
            int w;
            do {
                w = len > writeSize ? writeSize : len;
                if (useNTSmbs) {
                    reqx.setParam(file.fid, fp, len - w, b, off, w);
                    if ((flags & 1) != 0) {
                        reqx.setParam(file.fid, fp, len, b, off, w);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top