Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 559 for sockets (0.65 seconds)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingServerSocketFactory.kt

     */
    package okhttp3
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.ServerSocket
    import javax.net.ServerSocketFactory
    
    /**
     * A [ServerSocketFactory] that delegates calls. Sockets can be configured after creation by
     * overriding [.configureServerSocket].
     */
    open class DelegatingServerSocketFactory(
      private val delegate: ServerSocketFactory,
    ) : ServerSocketFactory() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

      // from the perspective of a single peer.
      private val random = Random(0)
      private val taskFaker = TaskFaker()
      private val sockets = inMemorySocketPair(8192L)
      private val client = TestStreams(taskFaker, sockets[0], client = true)
      private val server = TestStreams(taskFaker, sockets[1], client = false)
    
      @BeforeEach
      fun setUp() {
        client.initWebSocket(random)
        server.initWebSocket(random)
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 18.7K bytes
    - Click Count (0)
  3. build-logic/jvm/src/main/kotlin/gradlebuild/propagated-env-variables.kt

    import org.gradle.internal.os.OperatingSystem
    
    
    val propagatedEnvironmentVariables = listOf(
        // Obviously necessary
        "HOME",
        "SHELL",
        "TERM",
    
        // Otherwise Windows complains "Unrecognized Windows Sockets error: 10106"
        "SystemRoot",
        "OS",
    
        // For Android tests
        "ANDROID_HOME",
        "ANDROID_SDK_ROOT",
        // legacy and new android user home
        "ANDROID_USER_HOME",
        "ANDROID_PREFS_ROOT",
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Oct 15 18:27:39 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. docs/changelogs/changelog_3x.md

     *  New: charset support for `Credentials.basic()`.
    
    
    ## Version 3.5.0
    
    _2016-11-30_
    
     *  **Web Sockets are now a stable feature of OkHttp.** Since being introduced as a beta feature in
        OkHttp 2.3 our web socket client has matured. Connect to a server's web socket with
        `OkHttpClient.newWebSocket()`, send messages with `send()`, and receive messages with the
        `WebSocketListener`.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Protocol.kt

     *
     * [ietf_alpn]: http://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg
     */
    enum class Protocol(
      private val protocol: String,
    ) {
      /**
       * An obsolete plaintext framing that does not use persistent sockets by default.
       */
      HTTP_1_0("http/1.0"),
    
      /**
       * A plaintext framing that includes persistent connections.
       *
       * This version of OkHttp implements [RFC 7230][rfc_7230], and tracks revisions to that spec.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jun 23 18:58:57 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt

      /** Returns the route used by this connection. */
      fun route(): Route
    
      /**
       * Returns the socket that this connection is using. Returns an
       * [SSL socket][javax.net.ssl.SSLSocket] if this connection is HTTPS. If this is an HTTP/2
       * connection the socket may be shared by multiple concurrent calls.
       */
      fun socket(): Socket
    
      /**
       * Returns the TLS handshake used to establish this connection, or null if the connection is not
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

            .build(),
        )
        val webSocket: WebSocket = newWebSocket()
        clientListener.assertOpen()
        val server = serverListener.assertOpen()
        webSocket.send("Web Sockets and Events?!")
        serverListener.assertTextMessage("Web Sockets and Events?!")
        webSocket.close(1000, "")
        serverListener.assertClosing(1000, "")
        server.close(1000, "")
        clientListener.assertClosing(1000, "")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt

    /**
     * A non-blocking interface to a web socket. Use the [factory][WebSocket.Factory] to create
     * instances; usually this is [OkHttpClient].
     *
     * ## Web Socket Lifecycle
     *
     * Upon normal operation each web socket progresses through a sequence of states:
     *
     *  * **Connecting:** the initial state of each web socket. Messages may be enqueued but they won't
     *    be transmitted until the web socket is open.
     *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 5.3K bytes
    - Click Count (0)
  9. docs/changelogs/changelog_1x.md

        HTTP client adapter. (thanks kwuollett)
     *  Work around the Alcatel `getByInetAddress` bug (thanks k.kocel)
     *  Be more aggressive about testing pooled sockets before reuse. (thanks
        warpspin)
     *  Include `Content-Type` and `Content-Encoding` in the Apache HTTP client
        adapter. (thanks kwuollett)
     *  Add a media type class to OkHttp.
     *  Change custom header prefix:
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

                socketChannel.connect(remoteAddress);
                socket = socketChannel.socket();
                socket.setTcpNoDelay(true);
                socket.setKeepAlive(true);
    
                state = RdmaConnectionState.CONNECTED;
                log.debug("TCP RDMA connection established to {}", remoteAddress);
    
            } catch (IOException e) {
                state = RdmaConnectionState.ERROR;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 8.8K bytes
    - Click Count (0)
Back to Top