Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for QThread (0.24 sec)

  1. src/main/java/jcifs/smb1/util/transport/Transport.java

                        throw te;
                }
    
                state = 1;
                te = null;
                thread = new Thread( this, name );
                thread.setDaemon( true );
    
                synchronized (thread) {
                    thread.start();
                    thread.wait( timeout );          /* wait for doConnect */
    
                    switch (state) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/transport/Transport.java

            Thread t = this.thread;
            if ( t != null && Thread.currentThread() != t ) {
                this.thread = null;
                try {
                    log.debug("Interrupting transport thread");
                    t.interrupt();
                    log.debug("Joining transport thread");
                    t.join(timeout);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameServiceClientImpl.java

        }
    
    
        private static void interruptThreadSafely ( QueryThread thread ) {
            try {
                thread.interrupt();
            }
            catch ( SecurityException e ) {
                e.printStackTrace();
            }
        }
    
    
        private static void joinThread ( Thread thread ) {
            try {
                thread.join();
            }
            catch ( InterruptedException e ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

            // be ignored; see tryClose comment.
            if( socket == null ) {
                socket = new DatagramSocket( lport, laddr );
                thread = new Thread( this, "JCIFS-NameServiceClient" );
                thread.setDaemon( true );
                thread.start();
            }
        }
        void tryClose() {
            synchronized( LOCK ) {
    
                /* Yes, there is the potential to drop packets
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

         * read-only named pipe would write data to this stream on
         * connection). Reading from this stream may block. Therefore it
         * may be necessary that an addition thread be used to read and
         * write to a Named Pipe.
         */
    
        public InputStream getNamedPipeInputStream() throws IOException {
            if( pipeIn == null ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/SessionTest.java

            try ( SmbFile f = getDefaultShareRoot() ) {
                checkConnection(f);
                while ( true ) {
                    f.list();
                    Thread.sleep(5000);
                }
    
            }
        }
    
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/UniAddress.java

            }
        }
    
        static class Sem {
            Sem( int count ) {
                this.count = count;
            }
            int count;
        }
    
        static class QueryThread extends Thread {
        
            Sem sem;
            String host, scope;
            int type;
            NbtAddress ans = null;
            InetAddress svr;
            UnknownHostException uhe;
        
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 16.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbFile.java

            /*
             * Rename Request / Response
             */
    
            send( new SmbComRename( unc, dest.unc ), blank_resp() );
        }
    
        class WriterThread extends Thread {
            byte[] b;
            int n;
            long off;
            boolean ready;
            SmbFile dest;
            SmbException e = null;
            boolean useNTSmbs;
            SmbComWriteAndX reqx;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  9. src/test/java/jcifs/tests/WatchTest.java

        private void setupWatch ( SmbWatchHandle w ) throws InterruptedException {
            if ( this.future != null ) {
                this.future.cancel(true);
            }
            this.future = this.executor.submit(w);
            Thread.sleep(1000);
        }
    
    
        @Test
        public void testWatchCreate () throws CIFSException, MalformedURLException, UnknownHostException, InterruptedException, ExecutionException {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  10. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
Back to top