Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for closures (2.13 sec)

  1. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java

            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
        }
    
        /**
         * Closes this SAM alias handle.
         *
         * @throws IOException if an I/O error occurs during handle closure
         */
        public void close() throws IOException {
            final MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this);
            handle.sendrecv(rpc);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrDomainHandle.java

            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
        }
    
        /**
         * Closes this SAM domain handle.
         *
         * @throws IOException if an I/O error occurs during handle closure
         */
        public void close() throws IOException {
            final MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this);
            handle.sendrecv(rpc);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrPolicyHandle.java

                final MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this);
                handle.sendrecv(rpc2);
            }
        }
    
        /**
         * Closes this SAM policy handle.
         *
         * @throws IOException if an I/O error occurs during handle closure
         */
        public void close() throws IOException {
            final MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this);
            handle.sendrecv(rpc);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            // Using a SmbComClose instance triggers early return without DFS/session work
            SmbComClose closeReq = mock(SmbComClose.class);
            SmbResourceLocator res = c.ensureDFSResolved(loc, closeReq);
            assertSame(loc, res);
            // No connect attempts expected
            verify(c, never()).connectWrapException(any());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                }
    
                final Smb2CloseRequest closeReq = new Smb2CloseRequest(th.getConfig(), Smb2Constants.UNSPECIFIED_FILEID);
                closeReq.setCloseFlags(Smb2CloseResponse.SMB2_CLOSE_FLAG_POSTQUERY_ATTIB);
                cur.chain(closeReq);
    
                final Smb2CreateResponse createResp = th.send(cr);
    
                final Smb2CloseResponse closeResp = closeReq.getResponse();
                SmbBasicFileInfo info;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/EmptyIteratorTest.java

            }, "Multiple close operations should not cause issues");
    
            // Verify iterator still works after multiple closes
            assertFalse(emptyIterator.hasNext(), "Iterator should still work after multiple closes");
            assertNull(emptyIterator.next(), "Iterator should still return null after multiple closes");
        }
    
        @Test
        @DisplayName("EmptyIterator should handle remove operations multiple times")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbFileHandle.java

         */
        SmbTreeHandle getTree();
    
        /**
         * Checks if this file handle is still valid
         *
         * @return whether the file descriptor is valid
         */
        boolean isValid();
    
        /**
         * Closes this file handle and optionally sets the last write time
         *
         * @param lastWriteTime the last write time to set, or 0 to leave unchanged
         * @throws CIFSException if an error occurs while closing the file
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            verify(tree, times(1)).acquire();
            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("Happy path: iterates entries, fetchMore(), then closes with FindClose2")
        void iteratesAndFetchesMoreThenCloses() throws Exception {
            // Arrange: program send() to simulate first, next, next(NO_MORE_FILES)
            List<String[]> batches = new ArrayList<>();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandle.java

            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
        }
    
        /**
         * Closes the LSA policy handle.
         *
         * @throws IOException if an I/O error occurs
         */
        public void close() throws IOException {
            final MsrpcLsarClose rpc = new MsrpcLsarClose(this);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

         */
        public void recordConnectionCreated() {
            connectionsCreated.incrementAndGet();
            connectionsActive.incrementAndGet();
        }
    
        /**
         * Record RDMA connection closure
         */
        public void recordConnectionClosed() {
            connectionsActive.decrementAndGet();
        }
    
        /**
         * Record memory region allocation
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top