Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 413 for readPing (0.05 sec)

  1. docs/auditlog/auditlog-echo.go

    	flag.IntVar(&port, "port", 8080, "Port to listen on")
    }
    
    func mainHandler(w http.ResponseWriter, r *http.Request) {
    	body, err := io.ReadAll(r.Body)
    	defer r.Body.Close()
    	if err != nil {
    		log.Printf("Error reading request body: %v", err)
    		w.WriteHeader(http.StatusBadRequest)
    		return
    	}
    
    	log.Printf(">>> %s %s\n", r.Method, r.URL.Path)
    	var out bytes.Buffer
    	json.Indent(&out, body, "", "    ")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 01 21:31:13 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipe.java

    import jcifs.Configuration;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB1 transaction subcommand for peeking at data in a named pipe.
     *
     * This class implements the TRANS_PEEK_NAMED_PIPE transaction which allows
     * reading data from a pipe without removing it, useful for checking if data
     * is available before performing a blocking read.
     */
    public class TransPeekNamedPipe extends SmbComTransaction {
    
        private final int fid;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt

    import okio.ByteString.Companion.encodeUtf8
    
    object Http2 {
      @JvmField
      val CONNECTION_PREFACE = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n".encodeUtf8()
    
      /** The initial max frame size, applied independently writing to, or reading from the peer. */
      const val INITIAL_MAX_FRAME_SIZE = 0x4000 // 16384
    
      const val TYPE_DATA = 0x0
      const val TYPE_HEADERS = 0x1
      const val TYPE_PRIORITY = 0x2
      const val TYPE_RST_STREAM = 0x3
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteSink.java

      /**
       * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code
       * input}.
       *
       * @return the number of bytes written
       * @throws IOException if an I/O occurs while reading from {@code input} or writing to this sink
       */
      @CanIgnoreReturnValue
      public long writeFrom(InputStream input) throws IOException {
        checkNotNull(input);
    
        try (OutputStream out = openStream()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ByteSink.java

      /**
       * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code
       * input}.
       *
       * @return the number of bytes written
       * @throws IOException if an I/O occurs while reading from {@code input} or writing to this sink
       */
      @CanIgnoreReturnValue
      public long writeFrom(InputStream input) throws IOException {
        checkNotNull(input);
    
        try (OutputStream out = openStream()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/SessionServicePacket.java

            int n = readn(in, buffer, bufferIndex, HEADER_LENGTH);
            if (n != HEADER_LENGTH) {
                if (n == -1) {
                    return -1;
                }
                throw new IOException("unexpected EOF reading netbios session header");
            }
            return buffer[bufferIndex] & 0xFF;
        }
    
        int type, length;
    
        /**
         * Writes the packet to the specified byte array in wire format.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileInputStream.java

        private byte[] tmp = new byte[1];
    
        SmbFile file;
    
        private boolean largeReadX;
    
        private final boolean unsharedFile;
    
        private boolean smb2;
    
        /**
         * Creates an input stream for reading from the specified SMB URL
         *
         * @param url the SMB URL to read from
         * @param tc
         *            context to use
         * @throws SmbException if an SMB error occurs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

                    channel = new RandomAccessFile(touchfile, "rw").getChannel();
                    lock = channel.lock();
    
                    if (touchfile.canRead()) {
                        getLogger().debug("Reading resolution-state from: " + touchfile);
                        props.load(Channels.newInputStream(channel));
                    }
    
                    props.setProperty(key, Long.toString(System.currentTimeMillis()));
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Apr 22 22:13:51 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. docs/debugging/inspect/decrypt-v2.go

    		os.Mkdir(extractDir, 0o755)
    		w, err := os.Create(dst)
    		if err != nil {
    			return fmt.Errorf("creating output file: %w", err)
    		}
    		_, err = io.Copy(w, stream)
    		if err != nil {
    			return fmt.Errorf("reading inspect stream: %w", err)
    		}
    		fmt.Printf("Extracted: %s\n", dst)
    		extracted = true
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 17 17:09:42 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/LineBufferTest.java

        BufferedReader r = new BufferedReader(getChunkedReader(input, chunk));
        List<String> lines = new ArrayList<>();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
        return lines;
      }
    
      private static List<String> readUsingReader(String input, int chunk, boolean asReader)
          throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top