Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for Threads (0.27 sec)

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

                }
            }
            catch ( MalformedURLException mue ) {
                throw new SmbException(src.getURL().toString(), mue);
            }
        }
    
    }
    
    
    class WriterThread extends Thread {
    
        private byte[] b;
        private int n;
        private boolean ready;
        private SmbFileOutputStream out;
    
        private SmbException e = null;
    
    
        WriterThread () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

                             * sent. Unfortunately calling disconnect() doesn't always
                             * actually shutdown the connection before other threads
                             * have committed themselves (e.g. InterruptTest example).
                             */
                            try {
                                trans.disconnect(true);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/ConcurrencyTest.java

            final Object lock = new Object();
            final Thread t = Thread.currentThread();
    
            this.executor.submit(new Runnable() {
    
                @Override
                public void run () {
    
                    try {
                        synchronized ( lock ) {
                            lock.wait(1000);
                        }
    
                        Thread.sleep(100);
                        t.interrupt();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbNamedPipe.java

     *
     * <ul>
     * <li><code>CallNamedPipe</code> A message-type pipe call that opens,
     * writes to, reads from, and closes the pipe in a single operation.
     * <li><code>TransactNamedPipe</code> A message-type pipe call that
     * writes to and reads from an existing pipe descriptor in one operation.
     * <li><code>CreateFile</code>, <code>ReadFile</code>,
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        }
        private void negotiate( int port, ServerMessageBlock resp ) throws IOException {
            /* We cannot use Transport.sendrecv() yet because
             * the Transport thread is not setup until doConnect()
             * returns and we want to supress all communication
             * until we have properly negotiated.
             */
            synchronized (sbuf) {
                if (port == 139) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 31.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/KerberosTest.java

                try ( SmbTreeHandle th = f.getTreeHandle() ) {
                    Assume.assumeTrue("Not SMB2", th.isSMB2());
                }
    
                f.exists();
                Thread.sleep(wait);
    
                try ( SmbResource r = f.resolve("test") ) {
                    r.exists();
                }
            }
            catch ( SmbUnsupportedOperationException e ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 11.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

                log.trace("Acquire tree " + usage + " " + this);
            }
    
            if ( track && this.traceResource ) {
                synchronized ( this.acquires ) {
                    this.acquires.add(truncateTrace(Thread.currentThread().getStackTrace()));
                }
            }
    
            if ( usage == 1 ) {
                synchronized ( this ) {
                    if ( this.sessionAcquired.compareAndSet(false, true) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 29.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ReadWriteTest.java

            log.debug("Write " + length + " took " + ( System.currentTimeMillis() - start ));
        }
    
    
        static final void randBytes ( Random r, byte[] buffer ) {
            // regular nextBytes is not reproducible if the reads are not aligned
            for ( int i = 0; i < buffer.length; i++ ) {
                buffer[ i ] = (byte) r.nextInt(256);
            }
    
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
    
        private SmbNegotiation negotiate ( int prt ) throws IOException {
            /*
             * We cannot use Transport.sendrecv() yet because
             * the Transport thread is not setup until doConnect()
             * returns and we want to suppress all communication
             * until we have properly negotiated.
             */
            synchronized ( this.inLock ) {
                if ( prt == 139 ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbResource.java

         * file attributes such as ACLs but it does copy regular attributes as
         * well as create and last write times. This method is almost twice as
         * efficient as manually copying as it employs an additional write
         * thread to read and write data concurrently.
         * <br>
         * It is not possible (nor meaningful) to copy entire workgroups or
         * servers.
         *
         * @param dest
         *            the destination file or directory
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
Back to top