Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 111 for Setuid (0.04 sec)

  1. src/main/java/jcifs/smb/SmbFile.java

                    seekReq.setMode(0x2); // from EOF
                    final SmbComSeekResponse seekResp = new SmbComSeekResponse(config);
                    seekReq.setFid(response.getFid());
                    try {
                        h.send(seekReq, seekResp);
                        if (log.isDebugEnabled() && seekResp.getOffset() != fileSize) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/transport/Response.java

         */
        int getErrorCode();
    
        /**
         * Sets the message ID.
         *
         * @param k the message ID to set
         */
        void setMid(long k);
    
        /**
         * Gets the message ID.
         *
         * @return mid
         */
        long getMid();
    
        /**
         * Verifies the signature of this response.
         *
         * @param buffer the buffer containing the signature data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java

        @Mock
        private Configuration mockConfig;
    
        private SmbComSetInformationResponse response;
    
        @BeforeEach
        void setUp() {
            // Setup mock configuration to avoid NPE
            when(mockConfig.getPid()).thenReturn(12345);
    
            response = new SmbComSetInformationResponse(mockConfig);
        }
    
        @Test
        @DisplayName("Constructor accepts valid config")
        void constructorValid() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/config/BaseConfigurationTest.java

            assertNotNull(testConfig.getRandom());
            assertNotNull(testConfig.getLocalTimezone());
    
            // Check PID is set
            assertTrue(testConfig.getPid() >= 0);
            assertTrue(testConfig.getPid() < 65536);
    
            // Check machine ID
            assertNotNull(testConfig.getMachineId());
            assertEquals(32, testConfig.getMachineId().length);
    
            // Check native OS
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/TreeConnectResponseTest.java

            void testGetTid() {
                // Given
                when(mockResponse.getTid()).thenReturn(12345);
    
                // When
                int tid = mockResponse.getTid();
    
                // Then
                assertEquals(12345, tid, "Should return the configured tree ID");
                verify(mockResponse).getTid();
            }
    
            @Test
            @DisplayName("Should return service type")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileOutputStream.java

                        len -= cnt;
                        off += cnt;
                    } else if (this.useNTSmbs) {
                        this.reqx.setParam(fh.getFid(), this.fp, len - w, b, off, w);
                        if ((flags & 1) != 0) {
                            this.reqx.setParam(fh.getFid(), this.fp, len, b, off, w);
                            this.reqx.setWriteMode(0x8);
                        } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            setTreeIdMethod.setAccessible(true);
            setTreeIdMethod.invoke(response, 12345);
    
            // When
            int tid = response.getTid();
    
            // Then
            assertEquals(12345, tid);
        }
    
        @Test
        @DisplayName("Should validate TID correctly")
        void testIsValidTid() throws Exception {
            // Test invalid TID (-1)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            // Set MID to 0
            transaction.setMid(0);
    
            // Create cancel request
            CommonServerMessageBlockRequest cancelRequest = transaction.createCancel();
    
            // Verify it still creates a valid cancel request
            assertNotNull(cancelRequest);
            assertTrue(cancelRequest instanceof SmbComNtCancel);
            assertEquals(0, cancelRequest.getMid());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

                result[8 + i] = (byte) (leastSig >>> (56 - i * 8));
            }
    
            return result;
        }
    
        /**
         * Get the underlying UUID
         * @return the UUID
         */
        public UUID getUuid() {
            return guid;
        }
    
        @Override
        public String toString() {
            return guid.toString();
        }
    
        @Override
        public boolean equals(Object obj) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

            super(config, SMB_COM_TRANSACTION2, SmbComTransaction.TRANS2_FIND_FIRST2);
        }
    
        /**
         * Gets the search ID for this response.
         *
         * @return the sid
         */
        public final int getSid() {
            return this.sid;
        }
    
        /**
         * Checks if this is the end of the search results.
         *
         * @return the isEndOfSearch
         */
        public final boolean isEndOfSearch() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top