- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 25 for socketAddress (0.05 seconds)
-
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/TunnelingUnixSocket.java
this(path, channel); this.inetSocketAddress = address; } @Override public void connect(SocketAddress endpoint) throws IOException { this.inetSocketAddress = (InetSocketAddress) endpoint; super.connect(new UnixSocketAddress(path), 0); } @Override public void connect(SocketAddress endpoint, int timeout) throws IOException { this.inetSocketAddress = (InetSocketAddress) endpoint;
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Feb 12 16:33:52 GMT 2019 - 1.9K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt
* limitations under the License. */ package okhttp3 import java.net.InetAddress import java.net.InetSocketAddress import java.net.Socket import java.net.SocketAddress import okhttp3.internal.platform.Platform /** * A [SocketFactory] that redirects connections to [defaultAddress] or specific overridden address via [set]. */ class SpecificHostSocketFactory(
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
connection.start() // Success. call.eventListener.connectEnd(call, route.socketAddress, route.proxy, protocol) success = true return ConnectResult(plan = this) } catch (e: IOException) { call.eventListener.connectFailed(call, route.socketAddress, route.proxy, null, e) connectionPool.connectionListener.connectFailed(route, call, e)
Created: 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-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
) fun newRoute( address: Address = newAddress(), proxy: Proxy = this.proxy, socketAddress: InetSocketAddress = InetSocketAddress.createUnresolved(uriHost, uriPort), ): Route = Route( address = address, proxy = proxy, socketAddress = socketAddress, ) fun newChain(call: RealCall): RealInterceptorChain = RealInterceptorChain( call = call,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 6.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt
val proxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI) = listOf(socksProxy.proxy()) override fun connectFailed( uri: URI, socketAddress: SocketAddress, e: IOException, ) = error("unexpected call") } val client = clientTestRule .newClientBuilder() .proxySelector(proxySelector) .build()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 3.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
val proxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI): List<Proxy> = listOf() override fun connectFailed( uri: URI, socketAddress: SocketAddress, e: IOException, ) {} } val trustManager = get().platformTrustManager() val sslContext = get().newSSLContext() sslContext.init(null, null, null)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 13.4K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt
*/ private fun routeMatchesAny(candidates: List<Route>): Boolean = candidates.any { it.proxy.type() == Proxy.Type.DIRECT && route.proxy.type() == Proxy.Type.DIRECT && route.socketAddress == it.socketAddress } private fun supportsUrl(url: HttpUrl): Boolean { assertLockHeld() val routeUrl = route.address.url if (url.port != routeUrl.port) {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 14.6K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertFailsWith<IllegalStateException> { other.socketAddress } assertFailsWith<IllegalStateException> { other.hostName } assertFailsWith<IllegalStateException> { other.port } assertFailsWith<IllegalStateException> { other.proxyAddress } other.use { other.start() assertThat(other.socketAddress).isNotNull() assertThat(other.hostName).isNotNull()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Aug 03 22:38:00 GMT 2025 - 28K bytes - Click Count (0) -
docs/changelogs/upgrading_to_okhttp_4.md
* **Response**: body, cacheControl, cacheResponse, code, handshake, headers, message, networkResponse, priorResponse, protocol, receivedResponseAtMillis, request, sentRequestAtMillis * **Route**: address, proxy, socketAddress * **TlsVersion**: javaName #### Renamed Functions * **Headers.of()**: for symmetry with `listOf()`, `setOf()`, etc., we’ve replaced `Headers.of(String...)` with `headersOf(vararg String)`.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 16:58:16 GMT 2022 - 10.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
@Test @Disabled fun route() { val route: Route = factory.newRoute() val address: Address = route.address() val proxy: Proxy = route.proxy() val inetSocketAddress: InetSocketAddress = route.socketAddress() } @Test @Disabled fun tlsVersion() { val tlsVersion: TlsVersion = TlsVersion.TLS_1_3 val javaName: String = tlsVersion.javaName() }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 13.3K bytes - Click Count (0)