Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 120 for Pipe (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
      fun racingReaders() {
        val pipe = Pipe(1024)
        val sink = pipe.sink.buffer()
        val relay = edit(file, pipe.source, metadata, 5)
        val future1 = executor.submit(sourceReader(relay.newSource()))
        val future2 = executor.submit(sourceReader(relay.newSource()))
        Thread.sleep(500)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

                params += "&address=" + address;
            if (params.length() > 0)
                url += "?" + params.substring(1);
    
            pipe = new SmbNamedPipe(url,
                    /* This 0x20000 bit is going to get chopped! */
                    (0x2019F << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT,
                    auth);
        }
    
        protected void doSendFragment(byte[] buf,
                        int off,
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

        private final Pipe pipe = new Pipe(8192);
        private final BufferedSink sink = Okio.buffer(pipe.sink());
    
        public BufferedSink sink() {
          return sink;
        }
    
        @Override public MediaType contentType() {
          return MEDIA_TYPE_MARKDOWN;
        }
    
        @Override public void writeTo(BufferedSink sink) throws IOException {
          sink.writeAll(pipe.source());
        }
      }
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DosError.java

            "The pipe has been ended.", "The filename, directory name, or volume label syntax is incorrect.", "The directory is not empty.",
            "Cannot create a file when that file already exists.", "All pipe instances are busy.", "The pipe is being closed.",
            "No process is on the other end of the pipe.", "More data is available.", "This user account has expired.",
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 4.8K bytes
    - Viewed (1)
  5. src/test/java/jcifs/tests/TestProperties.java

        static final String EXCLUDE_TEST_MUTATIONS = "test.mutations.exclude";
    
        static final Object TEST_FIFO_PIPE = "test.pipe.fifo";
        static final Object TEST_TRANSACT_PIPE = "test.pipe.transact";
        static final Object TEST_CALL_PIPE = "test.pipe.call";
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Feb 29 16:38:58 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ReadWriteTest.java

            Assume.assumeNotNull(testCallPipe);
            return "smb://" + getTestServer() + "/IPC$/" + testCallPipe;
        }
    
    
        @Test
        public void testTransactPipe () throws IOException {
            try ( SmbNamedPipe f = new SmbNamedPipe(
                getTransactPipeUrl(),
                SmbPipeResource.PIPE_TYPE_RDWR | SmbPipeResource.PIPE_TYPE_TRANSACT,
    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)
  7. src/main/java/jcifs/smb/SmbPipeInputStream.java

    
        /**
         * This stream class is unbuffered. Therefore this method will always
         * return 0 for streams connected to regular files. However, a
         * stream created from a Named Pipe this method will query the server using a
         * "peek named pipe" operation and return the number of available bytes
         * on the server.
         */
        @Override
        public int available () throws IOException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 07:12:23 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTree.java

                            case SmbComTransaction.NET_SERVER_ENUM3:
                            case SmbComTransaction.TRANS_PEEK_NAMED_PIPE:
                            case SmbComTransaction.TRANS_WAIT_NAMED_PIPE:
                            case SmbComTransaction.TRANS_CALL_NAMED_PIPE:
                            case SmbComTransaction.TRANS_TRANSACT_NAMED_PIPE:
                            case SmbComTransaction.TRANS2_GET_DFS_REFERRAL:
                                break;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 8K bytes
    - Viewed (0)
  9. cmd/bitrot-streaming.go

    	// Race condition is because of io.PipeWriter implementation. i.e consider the following
    	// sequent of operations:
    	// 1) pipe.Write()
    	// 2) pipe.Close()
    	// Now pipe.Close() can return before the data is read on the other end of the pipe and written to the disk
    	// Hence an immediate Read() on the file can return incorrect data.
    	if b.canClose != nil {
    		b.canClose.Wait()
    	}
    	return err
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

    public interface SmbPipeHandleInternal extends SmbPipeHandle {
    
        /**
         * @return the pipe type
         */
        int getPipeType ();
    
    
        /**
         * @return session key of the underlying smb session
         * @throws CIFSException
         */
        byte[] getSessionKey () throws CIFSException;
    
    
        /**
         * 
         * @return this pipe's input stream
         * @throws SmbException
         */
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
Back to top