Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for TID (0.01 sec)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            // Given
            int tid = 12345;
            doNothing().when(request).setTid(tid);
    
            // When
            request.setTid(tid);
    
            // Then
            verify(request, times(1)).setTid(tid);
        }
    
        @Test
        @DisplayName("Test setTid with zero value")
        void testSetTidWithZero() {
            // Given
            int tid = 0;
            doNothing().when(request).setTid(tid);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // Test minimum valid TID
                smb2Response.setTreeId(0);
                assertTrue(smb2Response.isValidTid(), "TID 0 should be valid");
    
                // Test maximum valid TID
                smb2Response.setTreeId(Integer.MAX_VALUE);
                assertTrue(smb2Response.isValidTid(), "Maximum TID should be valid");
    
                // Test invalid TID
                smb2Response.setTreeId(-1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            decodedSmb.decode(buffer, 0);
    
            assertEquals(smb.command, decodedSmb.command);
            assertEquals(smb.mid, decodedSmb.mid);
            assertEquals(smb.pid, decodedSmb.pid);
            assertEquals(smb.tid, decodedSmb.tid);
            assertEquals(smb.uid, decodedSmb.uid);
            assertEquals(smb.flags2, decodedSmb.flags2);
            assertEquals(smb.wordCount, decodedSmb.wordCount);
            assertEquals(smb.byteCount, decodedSmb.byteCount);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            // Verify session.send was called and tid was set
            verify(session).send(request, response);
            assertEquals(123, request.tid);
        }
    
        @Test
        void testSendWithDfs() throws SmbException {
            SmbTree tree = new SmbTree(session, "testShare", "A:");
            tree.connectionState = 2; // Connected state
            tree.tid = 123;
            tree.inDfs = true;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeImpl.java

         * @return the session this tree is connected in
         */
        public SmbSessionImpl getSession() {
            return this.session.acquire();
        }
    
        /**
         * @return the tid
         */
        public int getTid() {
            return this.tid;
        }
    
        /**
         * @return the tree_num (monotonically increasing counter to track reconnects)
         */
        public long getTreeNum() {
            return this.treeNum;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            assertEquals(12345, tid);
        }
    
        @Test
        @DisplayName("Should validate TID correctly")
        void testIsValidTid() throws Exception {
            // Test invalid TID (-1)
            Method setTreeIdMethod = ServerMessageBlock2.class.getDeclaredMethod("setTreeId", int.class);
            setTreeIdMethod.setAccessible(true);
            setTreeIdMethod.invoke(response, -1);
            assertFalse(response.isValidTid());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbTree.java

                        break;
                    default:
                        throw new SmbException("Invalid operation for " + service + " service" + request);
                    }
                }
                request.tid = tid;
                if (inDfs && !service.equals("IPC") && request.path != null && request.path.length() > 0) {
                    /* When DFS is in action all request paths are
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/TreeConnectResponse.java

     * service type, and DFS information for the connected share.
     *
     * @author mbechler
     */
    public interface TreeConnectResponse extends CommonServerMessageBlockResponse {
    
        /**
         * Returns the tree identifier (TID) assigned to this tree connection.
         *
         * @return tree id
         */
        int getTid();
    
        /**
         * Returns the service type of the connected share (e.g., A: for disk, LPT1: for printer, IPC for named pipe).
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

        }
    
        /**
         * Gets the tree connection identifier
         * @return the tid
         */
        public final int getTid() {
            return this.tid;
        }
    
        /**
         * @param tid
         *            the tid to set
         */
        @Override
        public final void setTid(final int tid) {
            this.tid = tid;
        }
    
        /**
         * Gets the process identifier
         * @return the pid
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

            return "command=" + c + ",received=" + received + ",errorCode=" + str + ",flags=0x" + Hexdump.toHexString(flags & 0xFF, 4)
                    + ",flags2=0x" + Hexdump.toHexString(flags2, 4) + ",signSeq=" + signSeq + ",tid=" + tid + ",pid=" + pid + ",uid=" + uid
                    + ",mid=" + mid + ",wordCount=" + wordCount + ",byteCount=" + byteCount;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top