Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 850 for Socket (0.04 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

        }
        int octet = 0;
        for (int i = start; i < end; i++) {
          octet *= 10;
          int digit = Character.digit(ipString.charAt(i), 10);
          if (digit < 0) {
            throw new NumberFormatException();
          }
          octet += digit;
        }
        if (octet > 255) {
          throw new NumberFormatException();
        }
        return (byte) octet;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

            } catch (e: InterruptedException) {
              throw InterruptedIOException()
            }
          }
        }
    
      companion object {
        /** A large response body. Smaller bodies might successfully read after the socket is closed!  */
        private val BIG_ENOUGH_BODY = repeat('a', 64 * 1024)
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

    import okio.BufferedSource
    import okio.Sink
    import okio.Socket
    import okio.Source
    import okio.Timeout
    
    /** A logical bidirectional stream. */
    @Suppress("NAME_SHADOWING")
    class Http2Stream internal constructor(
      val id: Int,
      val connection: Http2Connection,
      outFinished: Boolean,
      inFinished: Boolean,
      headers: Headers?,
    ) : Lockable,
      Socket {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        val longString = repeat('a', Http2.INITIAL_MAX_FRAME_SIZE + 1)
        val socket = peer.openSocket()
        val connection =
          Http2Connection
            .Builder(true, TaskRunner.INSTANCE)
            .socket(socket.asBufferedSocket(), "peer")
            .pushObserver(IGNORE)
            .build()
        connection.start(sendConnectionPreface = false)
        socket.shutdownOutput()
        assertFailsWith<IOException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt

            measureTime {
              val exception =
                assertFailsWith<IOException> {
                  response.trailers()
                }
              assertThat(exception.message).isIn(
                "Socket closed", // HTTP/1.1
                "stream was reset: CANCEL", // HTTP/2
              )
            }
          assertThat(trailersDelay).isGreaterThan(250.milliseconds)
          assertThat(trailersDelay).isLessThan(750.milliseconds)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 18K bytes
    - Viewed (0)
  6. README.md

    efficiently makes your stuff load faster and saves bandwidth.
    
    OkHttp is an HTTP client that’s efficient by default:
    
     * HTTP/2 support allows all requests to the same host to share a socket.
     * Connection pooling reduces request latency (if HTTP/2 isn’t available).
     * Transparent GZIP shrinks download sizes.
     * Response caching avoids the network completely for repeat requests.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          logger.removeHandler(loggerHandler)
        }
    
        override fun connectionAcquired(
          call: Call,
          connection: Connection,
        ) {
          if (random != null) {
            val sslSocket = connection.socket() as SSLSocket
            val session = sslSocket.session
    
            val masterSecretHex =
              session.masterSecret
                ?.encoded
                ?.toByteString()
                ?.hex()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/internal/connection/RealCall;->releaseConnectionNoEvents$okhttp()Ljava/net/Socket;
    HSPLokhttp3/internal/connection/RealConnection;-><init>(Lokhttp3/internal/concurrent/TaskRunner;Lokhttp3/internal/connection/RealConnectionPool;Lokhttp3/Route;Ljava/net/Socket;Ljava/net/Socket;Lokhttp3/Handshake;Lokhttp3/Protocol;Lokio/BufferedSource;Lokio/BufferedSink;I)V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbConstants.java

         */
        int DEFAULT_MAX_MPX_COUNT = 10;
        /**
         * Default timeout in milliseconds for SMB responses.
         */
        int DEFAULT_RESPONSE_TIMEOUT = 30000;
        /**
         * Default socket timeout in milliseconds.
         */
        int DEFAULT_SO_TIMEOUT = 35000;
        /**
         * Default receive buffer size for SMB transport.
         */
        int DEFAULT_RCV_BUF_SIZE = 0xFFFF;
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. okhttp/api/android/okhttp.api

    public abstract interface class okhttp3/Connection {
    	public abstract fun handshake ()Lokhttp3/Handshake;
    	public abstract fun protocol ()Lokhttp3/Protocol;
    	public abstract fun route ()Lokhttp3/Route;
    	public abstract fun socket ()Ljava/net/Socket;
    }
    
    public final class okhttp3/ConnectionPool {
    	public fun <init> ()V
    	public fun <init> (IJLjava/util/concurrent/TimeUnit;)V
    	public final fun connectionCount ()I
    	public final fun evictAll ()V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
Back to top