Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for peekKey (0.24 seconds)

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

                    synchronized (this.inLock) {
                        final Long peekKey = peekKey();
                        if (peekKey == firstKey) {
                            doRecv(response);
                            response.received();
                            return response;
                        }
                        doSkip(peekKey);
                    }
                }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/util/transport/Transport.java

         * Reads and returns the key of the next message without consuming it.
         *
         * @return the request key of the next message
         * @throws IOException if an I/O error occurs
         */
        protected abstract Request peekKey() throws IOException;
    
        /**
         * Sends a request to the remote endpoint.
         *
         * @param request the request to send
         * @throws IOException if an I/O error occurs
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                out.write(sbuf, 0, 4 + n);
                out.flush();
                /* Note the Transport thread isn't running yet so we can
                 * read from the socket here.
                 */
                if (peekKey() == null) { /* try to read header */
                    throw new IOException("transport closed in negotiate");
                }
                final int size = Encdec.dec_uint16be(sbuf, 2) & 0xFFFF;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/transport/TransportTest.java

            @Override
            protected long makeKey(Request request) throws IOException {
                return nextKey++;
            }
    
            @Override
            protected Long peekKey() throws IOException {
                if (recvException != null) {
                    throw recvException;
                }
                return peekedKey;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbTransportImpl.java

             * read from the socket here.
             */
            try {
                this.socket.setSoTimeout(this.transportContext.getConfig().getConnTimeout());
                if (peekKey() == null) { /* try to read header */
                    throw new IOException("transport closed in negotiate");
                }
            } finally {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

                public U call(DeferredCloser closer, Peeker peeker) throws Exception {
                  return function.apply(
                      closer,
                      peeker.getDone(future1),
                      peeker.getDone(future2),
                      peeker.getDone(future3),
                      peeker.getDone(future4),
                      peeker.getDone(future5));
                }
    
                @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        peeker.getDone(input2Failed);
                        fail("Peeker.getDone() should fail for failed inputs");
                      } catch (ExecutionException expected) {
                      }
                      try {
                        peeker.getDone(nonInput);
                        fail("Peeker should not be able to peek into non-input ClosingFuture.");
                      } catch (IllegalArgumentException expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        peeker.getDone(input2Failed);
                        fail("Peeker.getDone() should fail for failed inputs");
                      } catch (ExecutionException expected) {
                      }
                      try {
                        peeker.getDone(nonInput);
                        fail("Peeker should not be able to peek into non-input ClosingFuture.");
                      } catch (IllegalArgumentException expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       * a modest limit on `byteCount`, such as 1 MiB.
       */
      @Throws(IOException::class)
      fun peekBody(byteCount: Long): ResponseBody {
        val peeked = body.source().peek()
        val buffer = Buffer()
        peeked.request(byteCount)
        buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
        return buffer.asResponseBody(body.contentType(), buffer.size)
      }
    
      @JvmName("-deprecated_body")
      @Deprecated(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 28 14:39:28 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

        while (true) {
          if (peek == null) {
            peek = readToken()
            if (skipCommasAndWhitespace()) break // We peeked a scheme name followed by ','.
            eqCount = skipAll('='.code.toByte())
          }
          if (eqCount == 0) break // We peeked a scheme name.
          if (eqCount > 1) return // Unexpected '=' characters.
          if (skipCommasAndWhitespace()) return // Unexpected ','.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.2K bytes
    - Click Count (0)
Back to Top