Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 517 for SOCKET (0.15 sec)

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

      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: String,
        port: Int,
      ): Socket {
        val socket = delegate.createSocket(host, port)
        return configureSocket(socket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: String,
        port: Int,
        localAddress: InetAddress,
        localPort: Int,
      ): Socket {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt

          )
        assertThat(tlsSpec.isCompatible(socket)).isTrue()
        applyConnectionSpec(tlsSpec, socket, isFallback = false)
        assertThat(socket.enabledProtocols).containsExactly(
          TlsVersion.TLS_1_2.javaName,
        )
        assertThat(socket.enabledCipherSuites.toList())
          .containsExactlyInAnyOrder(
            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256.javaName,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. src/net/internal/socktest/switch.go

    	sw.stats = make(stats)
    }
    
    // Stats returns a list of per-cookie socket statistics.
    func (sw *Switch) Stats() []Stat {
    	var st []Stat
    	sw.smu.RLock()
    	for _, s := range sw.stats {
    		ns := *s
    		st = append(st, ns)
    	}
    	sw.smu.RUnlock()
    	return st
    }
    
    // Sockets returns mappings of socket descriptor to socket status.
    func (sw *Switch) Sockets() Sockets {
    	sw.smu.RLock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. okhttp/src/main/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.
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

        applyConnectionSpec(connectionSpec, socket, false)
        assertArrayEquals(arrayOf("TLS_A", "TLS_C"), socket.enabledCipherSuites)
      }
    
      @Test
      fun applyIntersectionRetainsSslPrefixes() {
        val socket = FakeSslSocket()
        socket.enabledProtocols = arrayOf("TLSv1")
        socket.supportedCipherSuites =
          arrayOf("TLS_A", "TLS_B", "TLS_C", "TLS_D", "TLS_E")
        socket.enabledCipherSuites = arrayOf("TLS_A", "TLS_B", "TLS_C")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

        val sslSocket =
          sslSocketFactory.createSocket(
            socket,
            socket.inetAddress.hostAddress,
            socket.port,
            true,
          ) as SSLSocket
        sslSocket.useClientMode = false
        Platform.get().configureTlsExtensions(sslSocket, null, listOf(Protocol.HTTP_2))
        sslSocket.startHandshake()
        return sslSocket
      }
    
      override fun onStream(stream: Http2Stream) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonInitialCommunicationFailureIntegrationSpec.groovy

            def daemon = daemons.daemon
            daemon.assertIdle()
    
            when:
            def socket = new Socket(new InetAddressFactory().localBindingAddress, daemon.port)
            socket.outputStream.write("GET / HTTP/1.0\n\n".getBytes())
            socket.outputStream.flush()
    
            then:
            // Nothing sent back
            socket.inputStream.read() == -1
    
            // Daemon is still running
            daemon.becomesIdle()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 07:46:29 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

    /**
     * What should be done with the incoming socket.
     *
     * Be careful when using values like [DisconnectAtEnd], [ShutdownInputAtEnd]
     * and [ShutdownOutputAtEnd] that close a socket after a response, and where there are
     * follow-up requests. The client is unblocked and free to continue as soon as it has received the
     * entire response body. If and when the client makes a subsequent request using a pooled socket the
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          }
    
          val source = socket.source().buffer()
          val sink = socket.sink().buffer()
    
          while (processOneRequest(socket, source, sink)) {
          }
    
          if (sequenceNumber == 0) {
            logger.warning(
              "${this@MockWebServer} connection from ${raw.inetAddress} didn't make a request",
            )
          }
    
          socket.close()
          openClientSockets.remove(socket)
        }
    
        /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

        assertThat(attempt1).isNotNull()
        assertThat(attempt1!!.isTlsFallback).isTrue()
        socket.close()
    
        // COMPATIBLE_TLS is used here.
        socket = createSocketWithEnabledProtocols(*enabledSocketTlsVersions)
        connectionSpecs[attempt1.connectionSpecIndex].apply(socket, attempt1.isTlsFallback)
        assertEnabledProtocols(socket, TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top