Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for addresses (0.4 sec)

  1. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

        dnsResults =
          listOf(
            localhostIpv4,
            localhostIpv6,
            TestUtil.UNREACHABLE_ADDRESS_IPV4.address,
          )
        serverIpv4.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE)
        serverIpv6.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE)
    
        // Yield the first IP address so the second IP address completes first.
        val firstConnectLatch = CountDownLatch(1)
        val socketFactory =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

       */
      @ExperimentalOkHttpApi
      interface Callback {
        /**
         * Return addresses for a dns query for a single class of IPv4 (A) or IPv6 (AAAA).
         * May be an empty list indicating that the host is unreachable.
         */
        fun onResponse(
          hostname: String,
          addresses: List<InetAddress>,
        )
    
        /**
         * Returns an error for the DNS query.
         */
        fun onFailure(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

            executor,
            null,
            object : DnsResolver.Callback<List<InetAddress>> {
              override fun onAnswer(
                addresses: List<InetAddress>,
                rCode: Int,
              ) {
                callback.onResponse(hostname, addresses)
              }
    
              override fun onError(e: DnsResolver.DnsException) {
                callback.onFailure(
                  hostname,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 10:07:48 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      companion object {
        /**
         * A network that resolves only one IP address per host. Use this when testing route selection
         * fallbacks to prevent the host machine's various IP addresses from interfering.
         */
        private val SINGLE_INET_ADDRESS_DNS =
          Dns { hostname ->
            val addresses = Dns.SYSTEM.lookup(hostname)
            listOf(addresses[0])
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. README.md

     * Response caching avoids the network completely for repeat requests.
    
    OkHttp perseveres when the network is troublesome: it will silently recover from common connection
    problems. If your service has multiple IP addresses, OkHttp will attempt alternate addresses if the
    first connect fails. This is necessary for IPv4+IPv6 and services hosted in redundant data
    centers. OkHttp supports modern TLS features (TLS 1.3, ALPN, certificate pinning). It can be
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // Permit the contents of IPv6 addresses to be percent-encoded...
        assertThat(parse("http://[%3A%3A%31]/").host).isEqualTo("::1")
    
        // Including the Square braces themselves! (This is what Chrome does.)
        assertThat(parse("http://%5B%3A%3A1%5D/").host).isEqualTo("::1")
      }
    
      @Test
      fun hostIpv6AddressDifferentFormats() {
        // Multiple representations of the same address; see http://tools.ietf.org/html/rfc5952.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

        val addressE = decodeIpv6("2001:db8::1:0:0:1")!!
        assertThat(canonicalizeInetAddress(addressE)).isEqualTo(addressE)
    
        val addressF = decodeIpv6("0:0:0:0:0:ffff:7f00:1")!!
        assertThat(canonicalizeInetAddress(addressF)).isEqualTo(addressB)
    
        val addressG = decodeIpv6("0:0:0:0:0:ffff:c0a8:1")!!
        assertThat(canonicalizeInetAddress(addressG)).isEqualTo(addressC)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 30 06:23:33 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Address.kt

     * address also includes the SSL socket factory, hostname verifier, and certificate pinner.
     *
     * HTTP requests that share the same [Address] may also share the same [Connection].
     */
    class Address(
      uriHost: String,
      uriPort: Int,
      /** Returns the service that will be used to resolve IP addresses for hostnames. */
      @get:JvmName("dns") val dns: Dns,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        if (newRouteSelector == null) {
          newRouteSelector =
            RouteSelector(
              address = address,
              routeDatabase = routeDatabase,
              connectionUser = connectionUser,
              fastFallback = fastFallback,
            )
          routeSelector = newRouteSelector
        }
    
        // List available IP addresses for the current proxy. This may block in Dns.lookup().
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        }
      }
    
      /** Open connections to [address], if required by the address policy. */
      fun scheduleOpener(address: Address) {
        addressStates[address]?.scheduleOpener()
      }
    
      fun scheduleCloser() {
        cleanupQueue.schedule(cleanupTask)
      }
    
      /**
       * Ensure enough connections open to [address] to satisfy its [ConnectionPool.AddressPolicy].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top