Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for 1024 (0.13 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            InputStream errorStream = connection.getErrorStream();
            if (errorStream != null && errorStream.available() != 0) {
                int count;
                byte[] buf = new byte[1024];
                while ((count = errorStream.read(buf, 0, 1024)) != -1);
            }
            String authHeader;
            if (response == HTTP_UNAUTHORIZED) {
                authHeader = "WWW-Authenticate";
                authProperty = "Authorization";
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 20.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileInputStream.java

                        if ( type == SmbConstants.TYPE_NAMED_PIPE ) {
                            request.setMinCount(1024);
                            request.setMaxCount(1024);
                            request.setRemaining(1024);
                        }
                        else if ( this.largeReadX ) {
                            request.setMaxCount(r & 0xFFFF);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                    if ( ( getPipeType() & SmbPipeResource.PIPE_TYPE_DCE_TRANSACT ) == SmbPipeResource.PIPE_TYPE_DCE_TRANSACT ) {
                        req.setMaxDataCount(1024);
                    }
                    th.send(req, resp, RequestParam.NO_RETRY);
                    return resp.getResponseLength();
                }
                else if ( this.call ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Apr 13 17:05:22 GMT 2020
    - 10.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/EnumTest.java

                    // + 64 byte header
                    // + 8 byte query response overhead
                    // + 110 bytes entry
                    // -> 1022 predicted message size <= 1023 maximum buffer size
                    // 112 bytes to alignment
                    // -> aligned to 1024 > 1023 maximum buffer size
    
                    // 110 byte entry = 16 byte name = 8 char length
                    try ( SmbResource r = f.resolve(repeat('Y', 8)) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbConstants.java

        static final int DEFAULT_SO_TIMEOUT = 35000;
        static final int DEFAULT_RCV_BUF_SIZE = 0xFFFF;
        static final int DEFAULT_SND_BUF_SIZE = 0xFFFF;
        static final int DEFAULT_NOTIFY_BUF_SIZE = 1024;
    
        static final int DEFAULT_SSN_LIMIT = 250;
        static final int DEFAULT_CONN_TIMEOUT = 35000;
    
        static final int FLAGS_NONE = 0x00;
        static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK = 0x01;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbCopyUtil.java

                    // can we resume this if we loose the file descriptor?
    
                    int maxChunks = 256;
                    int maxChunkSize = 1024 * 1024;
                    int byteLimit = 16 * 1024 * 1024;
                    boolean retry = false;
                    do {
                        long ooff = 0;
                        while ( ooff < size ) {
                            long wsize = size - ooff;
    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)
  7. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

                try {
    SmbComReadAndX request = new SmbComReadAndX( file.fid, fp, r, null );
    if( file.type == SmbFile.TYPE_NAMED_PIPE ) {
        request.minCount = request.maxCount = request.remaining = 1024;
    }
                    file.send( request, response );
                } catch( SmbException se ) {
                    if( file.type == SmbFile.TYPE_NAMED_PIPE &&
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ReadWriteTest.java

                try ( SmbPipeHandle p = f.openPipe() ) {
                    try ( OutputStream os = p.getOutput() ) {
                        writeRandom(1024, 1024, os);
                        try ( InputStream is = p.getInput() ) {
                            verifyRandom(1024, 1024, is);
                        }
                    }
                }
                catch ( SmbException e ) {
                    if ( e.getNtStatus() == 0xC00000BB ) {
    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/test/java/jcifs/tests/FileOperationsTest.java

                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
        public void testCopyFileLarge () throws IOException {
            long length = 4096 * 16 * 1024;
            try ( SmbFile f = createTestFile();
                  SmbTreeHandle treeHandle = f.getTreeHandle() ) {
                // this is tremendously slow on SMB1
                try {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/RandomAccessFileTest.java

        }
    
    
        @Test
        public void testReadWrite () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try {
                    int bufSize = 4096;
                    long l = 1024;
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) {
                        writeRandom(bufSize, l, raf);
                        assertEquals(l, raf.getFilePointer());
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
Back to top