Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for configureSocket (0.35 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

        client =
          clientTestRule
            .newClientBuilder()
            .socketFactory(
              object : DelegatingSocketFactory(getDefault()) {
                @Throws(IOException::class)
                override fun configureSocket(socket: Socket): Socket {
                  socket.setSendBufferSize(SOCKET_BUFFER_SIZE)
                  socket.setReceiveBufferSize(SOCKET_BUFFER_SIZE)
                  return socket
                }
              },
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val trustManager = client.x509TrustManager!!
    
        val delegatingSocketFactory =
          object : DelegatingSSLSocketFactory(sslSocketFactory) {
            override fun configureSocket(sslSocket: SSLSocket): SSLSocket =
              object : DelegatingSSLSocket(sslSocket) {
                override fun getApplicationProtocol(): String = throw UnsupportedOperationException()
              }
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        cipherSuite: CipherSuite,
      ): SSLSocketFactory {
        return object : DelegatingSSLSocketFactory(sslSocketFactory) {
          override fun configureSocket(sslSocket: SSLSocket): SSLSocket {
            sslSocket.enabledCipherSuites = arrayOf(cipherSuite.javaName)
            return super.configureSocket(sslSocket)
          }
        }
      }
    
      private class RecordingSSLSocketFactory(
        delegate: SSLSocketFactory,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top