Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for 1004 (0.18 sec)

  1. src/test/java/jcifs/tests/FileAttributesTest.java

                    f.setLastModified(time);
    
                    if ( ( getContext().getConfig().getCapabilities() & SmbConstants.CAP_NT_SMBS ) == 0 ) {
                        // only have second precision
                        // there seems to be some random factor (adding one second)
                        int diff = Math.abs((int) ( ( time / 1000 ) - ( f.lastModified() / 1000 ) ));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/http/NtlmHttpFilter.java

                    if ( list != null && list.length > 0 ) {
                        this.dcList = list;
                    }
                    else { /* keep using the old list */
                        this.dcListExpiration = now + 1000 * 60 * 15; /* 15 min */
                        log.warn("Failed to retrieve DC list from WINS");
                    }
                }
    
                int max = Math.min(this.dcList.length, this.netbiosLookupRespLimit);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbSession.java

                        if (list != null && list.length > 0) {
                            dc_list = list;
                        } else { /* keep using the old list */
                            dc_list_expiration = now + 1000 * 60 * 15; /* 15 min */
                            if (SmbTransport.log.level >= 2) {
                                SmbTransport.log.println( "Failed to retrieve DC list from WINS" );
                            }
                        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/WatchTest.java

            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 May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/OplockTests.java

                    tree.send(create);
    
                    Smb2CreateRequest create2 = new Smb2CreateRequest(sess.getConfig(), "\\foocc");
                    create2.setOverrideTimeout(1000);
                    create2.setCreateDisposition(Smb2CreateRequest.FILE_OPEN_IF);
                    create2.setRequestedOplockLevel(Smb2CreateRequest.SMB2_OPLOCK_LEVEL_BATCH);
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NbtAddress.java

            if( CACHE_POLICY == 0 ) {
                return;
            }
            long expiration = -1;
            if( CACHE_POLICY != FOREVER ) {
                expiration = System.currentTimeMillis() + CACHE_POLICY * 1000;
            }
            cacheAddress( hostName, addr, expiration );
        }
        static void cacheAddress( Name hostName, NbtAddress addr, long expiration ) {
            if( CACHE_POLICY == 0 ) {
                return;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 30.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/KerberosTest.java

            long start = System.currentTimeMillis() / 1000 * 1000;
            // this is not too great as it depends on timing/clockskew
            // first we need to obtain a ticket, therefor need valid credentials
            // then we need to wait until the ticket is expired
            int wait = 10 * 1000;
            long princExp = start + ( wait / 2 );
    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)
  8. src/test/java/jcifs/tests/ConcurrencyTest.java

                @Override
                public void run () {
    
                    try {
                        synchronized ( lock ) {
                            lock.wait(1000);
                        }
    
                        Thread.sleep(100);
                        t.interrupt();
                    }
                    catch ( InterruptedException e ) {
                        e.printStackTrace();
                    }
                }
    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)
  9. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                rn = resp.numReferrals;
            }
    
            DfsReferral dr = new DfsReferral();
    
            String[] arr = new String[4];
            long expiration = System.currentTimeMillis() + Dfs.TTL * 1000;
    
            int di = 0;
            for ( ;; ) {
                            /* NTLM HTTP Authentication must be re-negotiated
                             * with challenge from 'server' to access DFS vol. */
    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)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

        private Socket socket;
        private int port;
        private final AtomicLong mid = new AtomicLong();
        private OutputStream out;
        private InputStream in;
        private final byte[] sbuf = new byte[1024]; /* small local buffer */
        private long sessionExpiration;
        private final List<SmbSessionImpl> sessions = new LinkedList<>();
    
        private String tconHostName = null;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
Back to top