- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for inetSocketAddress (0.05 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt
val InetSocketAddress.socketHost: String get() { // The InetSocketAddress was specified with a string (either a numeric IP or a host name). If // it is a name, all IPs for that name should be tried. If it is an IP address, only that IP // address should be tried. val address = address ?: return hostName
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt
} data class ConnectStart( override val timestampNs: Long, override val call: Call, val inetSocketAddress: InetSocketAddress, val proxy: Proxy?, ) : CallEvent() data class ConnectEnd( override val timestampNs: Long, override val call: Call, val inetSocketAddress: InetSocketAddress, val proxy: Proxy?, val protocol: Protocol?, ) : CallEvent() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
override fun connectEnd( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ) = logEvent(ConnectEnd(System.nanoTime(), call, inetSocketAddress, proxy, protocol)) override fun connectFailed( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ioe: IOException,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 9.5K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
} override fun connectEnd( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ) { logWithTime("connectEnd: $protocol") } override fun connectFailed( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ioe: IOException, ) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 5.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt
// Name proxy specification. var socketAddress = InetSocketAddress.createUnresolved("host", 1234) assertThat(socketAddress.socketHost).isEqualTo("host") socketAddress = InetSocketAddress.createUnresolved("127.0.0.1", 1234) assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1") // InetAddress proxy specification. socketAddress = InetSocketAddress(InetAddress.getByName("localhost"), 1234)
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-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt
} } private fun startTlsServer(): InetSocketAddress { val serverSocketFactory = ServerSocketFactory.getDefault() serverSocket = serverSocketFactory.createServerSocket() val serverAddress = InetAddress.getByName("localhost") serverSocket!!.bind(InetSocketAddress(serverAddress, 0), 50) return InetSocketAddress(serverAddress, serverSocket!!.localPort) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.2K bytes - Viewed (0) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java
* limitations under the License. */ package okhttp3.unixdomainsockets; import java.io.File; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.Socket; import javax.net.SocketFactory; import jnr.unixsocket.UnixSocketChannel; /** Impersonate TCP-style SocketFactory over UNIX domain sockets. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Dec 03 21:33:52 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
val latch4 = CountDownLatch(1) val listener1: EventListener = object : EventListener() { override fun connectStart( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, ) { try { // Wait for request2 to guarantee we make 2 separate connections to the server. latch1.await()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 19.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Route.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import java.net.InetSocketAddress import java.net.Proxy import okhttp3.internal.toCanonicalHost /** * The concrete route used by a connection to reach an abstract origin server. When creating a * connection the client has many options: *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt
* limitations under the License. */ package okhttp3.internal.authenticator import java.io.IOException import java.net.Authenticator import java.net.InetAddress import java.net.InetSocketAddress import java.net.Proxy import okhttp3.Credentials import okhttp3.Dns import okhttp3.HttpUrl import okhttp3.Request import okhttp3.Response import okhttp3.Route /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.2K bytes - Viewed (0)