Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getAllByName (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/Dns.kt

       */
      @Throws(UnknownHostException::class)
      fun lookup(hostname: String): List<InetAddress>
    
      companion object {
        /**
         * A DNS that uses [InetAddress.getAllByName] to ask the underlying operating system to
         * lookup IP addresses. Most custom [Dns] implementations should delegate to this instance.
         */
        @JvmField
        val SYSTEM: Dns = DnsSystem()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java

        protected int flag = 0;
    
        protected String encoding = "UTF-8";
    
        @Override
        public InetAddress[] resolve(final String host) throws UnknownHostException {
            return InetAddress.getAllByName(toAscii(host));
        }
    
        protected String decode(final String host) {
            if (host.indexOf('%') == -1) {
                return host;
            }
            try {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

      }
    
      /** Prepares the socket addresses to attempt for the current proxy or host. */
      @Throws(IOException::class)
      private fun resetNextInetSocketAddress(proxy: Proxy) {
        // Clear the addresses. Necessary if getAllByName() below throws!
        val mutableInetSocketAddresses = mutableListOf<InetSocketAddress>()
        inetSocketAddresses = mutableInetSocketAddresses
    
        val socketHost: String
        val socketPort: Int
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

       * it to prefer IPv6.
       */
      private var dnsResults = listOf<InetAddress>()
    
      @BeforeEach
      internal fun setUp() {
        val inetAddresses = InetAddress.getAllByName("localhost")
        localhostIpv4 = inetAddresses.firstOrNull { it is Inet4Address }
          ?: throw TestAbortedException()
        localhostIpv6 = inetAddresses.firstOrNull { it is Inet6Address }
          ?: throw TestAbortedException()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       * | `http://a%20b:c%20d@host/`       | `"c d"`      |
       */
      @get:JvmName("password") val password: String,
      /**
       * The host address suitable for use with [InetAddress.getAllByName]. May be:
       *
       *  * A regular host name, like `android.com`.
       *
       *  * An IPv4 address, like `127.0.0.1`.
       *
       *  * An IPv6 address, like `::1`. Note that there are no square braces.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top