Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for peekKey (2.02 sec)

  1. 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
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. 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);
                    }
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  4. 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(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(smb2);
            return new SmbPipeInputStream(handle, tree);
        }
    
        @Test
        @DisplayName("available() on SMB2 returns peeked byte count and interacts with tree")
        void available_smb2_happyPath() throws Exception {
            // Verify SMB2 path: IOCTL peek result is returned and resources are closed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            )
          }
    
          socket.close()
          openClientSockets.remove(socket.javaNetSocket)
        }
    
        /**
         * Respond to `CONNECT` requests until a non-tunnel response is peeked. Returns true if further
         * calls should be attempted on the socket.
         */
        @Throws(IOException::class, InterruptedException::class)
        private fun processTunnelRequests(): Boolean {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top