- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for socketAddress (0.05 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
println("Proxy Server 1 is ${server1.socketAddress}") println("Proxy Server 2 is ${server2.socketAddress}") // Since myproxy:8008 won't resolve, redirect with DNS to proxyServer1 // Then redirect socket connection to server1 dns["myproxy"] = listOf(proxyServer1) socketFactory[proxyServer1] = server1.socketAddress client = client.newBuilder().proxySelector(proxySelector).build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 11.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Route.kt
) fun proxy(): Proxy = proxy @JvmName("-deprecated_socketAddress") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "socketAddress"), level = DeprecationLevel.ERROR, ) fun socketAddress(): InetSocketAddress = socketAddress /** * Returns true if this route tunnels HTTPS or HTTP/2 through an HTTP proxy. * See [RFC 2817, Section 5.2][rfc_2817]. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.2K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
* of the request. */ public var dispatcher: Dispatcher = QueueDispatcher() public val socketAddress: InetSocketAddress get() = socketAddress_ ?: error("call start() first") public val port: Int get() = socketAddress.port public val hostName: String get() = socketAddress.address.hostName /** Returns the address of this server, to connect to it as an HTTP proxy. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 40.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt
assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1") // InetAddress proxy specification. socketAddress = InetSocketAddress(InetAddress.getByName("localhost"), 1234) assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1") socketAddress = InetSocketAddress(InetAddress.getByAddress(byteArrayOf(127, 0, 0, 1)), 1234) assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1") socketAddress = InetSocketAddress(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 20.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
val expectedAddress = InetSocketAddress(address, server!!.port) val event = listener.removeUpToEvent(ConnectionEvent.ConnectStart::class.java) assertThat(event.route.socketAddress).isEqualTo(expectedAddress) } @Test @Throws(UnknownHostException::class) fun failedConnect() { enableTls() server!!.enqueue(MockResponse.Builder().failHandshake().build())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/proxy/NullProxySelector.kt
* limitations under the License. */ package okhttp3.internal.proxy import java.io.IOException import java.net.Proxy import java.net.ProxySelector import java.net.SocketAddress import java.net.URI /** * A proxy selector that always returns the [Proxy.NO_PROXY]. */ object NullProxySelector : ProxySelector() { override fun select(uri: URI?): List<Proxy> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 1.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt
requestedUris.clear() } override fun connectFailed( uri: URI, sa: SocketAddress, ioe: IOException, ) { val socketAddress = sa as InetSocketAddress failures.add(format("%s %s:%d %s", uri, socketAddress, socketAddress.port, ioe.message!!)) } override fun toString() = "RecordingProxySelector"
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 1.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt
@Throws(IOException::class) override fun bind(localAddr: SocketAddress) { delegate!!.bind(localAddr) } @Throws(IOException::class) override fun connect(remoteAddr: SocketAddress) { delegate!!.connect(remoteAddr) } @Throws(IOException::class) override fun connect( remoteAddr: SocketAddress, timeout: Int, ) { delegate!!.connect(remoteAddr, timeout) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/CallConnectionUser.kt
} override fun connectStart(route: Route) { eventListener.connectStart(call, route.socketAddress, route.proxy) poolConnectionListener.connectStart(route, call) } override fun connectFailed( route: Route, protocol: Protocol?, e: IOException, ) { eventListener.connectFailed(call, route.socketAddress, route.proxy, null, e) poolConnectionListener.connectFailed(route, call, e) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 4.1K bytes - Viewed (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()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 3.6K bytes - Viewed (0)