- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for createSocket (0.1 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
object : DelegatingSocketFactory(SocketFactory.getDefault()) { var first = true override fun createSocket(): Socket { if (first) { first = false firstConnectLatch.await() } return super.createSocket() } } client = client .newBuilder()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
} call.eventListener.secureConnectStart(call) // Create the wrapper over the connected socket. val sslSocket = route.address.sslSocketFactory.createSocket( rawSocket, route.address.url.host, route.address.url.port, // autoClose: true, ) as SSLSocketCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 19.3K bytes - Click Count (2) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val supportsTlsExtensions: Boolean = connectionSpec.supportsTlsExtensions val compatible: Boolean = connectionSpec.isCompatible( localhost().sslSocketFactory().createSocket() as SSLSocket, ) } @Test fun connectionSpecBuilder() { var builder = ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) builder = builder.allEnabledCipherSuites()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 47K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
} this.proxyAuthenticator = proxyAuthenticator } /** * Sets the socket factory used to create connections. OkHttp only uses the parameterless * [SocketFactory.createSocket] method to create unconnected sockets. Overriding this method, * e. g., allows the socket to be bound to a specific local address. *Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 51.4K bytes - Click Count (0)