Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for IPV4 (0.04 sec)

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

      )
    
      /**
       * Callback to receive results from the DNS Queries.
       */
      @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>,
        )
    
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

      }
      return result.readUtf8()
    }
    
    /**
     * Returns the canonical address for [address]. If [address] is an IPv6 address that is mapped to an
     * IPv4 address, this returns the IPv4-mapped address. Otherwise, this returns [address].
     *
     * https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses
     */
    internal fun canonicalizeInetAddress(address: ByteArray): ByteArray {
      return when {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

          ),
        ).isEqualTo("255.255.255.255")
      }
    
      private fun decodeIpv6(input: String): ByteArray? = decodeIpv6(input, 0, input.length)
    
      @Test
      fun testToCanonicalHost() {
        // IPv4
        assertThat("127.0.0.1".toCanonicalHost()).isEqualTo("127.0.0.1")
        assertThat("1.2.3.4".toCanonicalHost()).isEqualTo("1.2.3.4")
    
        // IPv6
        assertThat("::1".toCanonicalHost()).isEqualTo("::1")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 30 06:23:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. internal/http/dial_linux.go

    				// Number of probes.
    				// ~ cat /proc/sys/net/ipv4/tcp_keepalive_probes (defaults to 9, we reduce it to 5)
    				_ = syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, syscall.TCP_KEEPCNT, 5)
    
    				// Wait time after successful probe in seconds.
    				// ~ cat /proc/sys/net/ipv4/tcp_keepalive_intvl (defaults to 75 secs, we reduce it to 15 secs)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

              initCause(e)
            },
          )
        }
      }
    
      @ExperimentalOkHttpApi
      companion object {
        @RequiresApi(Build.VERSION_CODES.Q)
        val IPv4 = AndroidAsyncDns(dnsClass = AsyncDns.DnsClass.IPV4)
    
        @RequiresApi(Build.VERSION_CODES.Q)
        val IPv6 = AndroidAsyncDns(dnsClass = AsyncDns.DnsClass.IPV6)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 10:07:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

    @Config(shadows = [ShadowDnsResolver::class], sdk = [34])
    @RunWith(RobolectricTestRunner::class)
    class AndroidAsyncDnsTest {
      @Test
      fun testDnsRequestInvalid() {
        val asyncDns = AndroidAsyncDns.IPv4
        val shadowDns: ShadowDnsResolver = Shadow.extract(asyncDns.resolver)
    
        shadowDns.responder = {
          throw IllegalArgumentException("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.")
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 22 20:07:09 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. common/scripts/kind_provisioner.sh

    DEFAULT_KIND_IMAGE="gcr.io/istio-testing/kind-node:v1.28.4"
    
    # the default kind cluster should be ipv4 if not otherwise specified
    IP_FAMILY="${IP_FAMILY:-ipv4}"
    
    # COMMON_SCRIPTS contains the directory this file is in.
    COMMON_SCRIPTS=$(dirname "${BASH_SOURCE:-$0}")
    
    function log() {
      echo -e "$(date -u '+%Y-%m-%dT%H:%M:%S.%NZ')\t$*"
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Aug 21 04:47:23 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/discovery/v1beta1/generated.proto

      // All addresses in this slice must be the same type. This field is
      // immutable after creation. The following address types are currently
      // supported:
      // * IPv4: Represents an IPv4 Address.
      // * IPv6: Represents an IPv6 Address.
      // * FQDN: Represents a Fully Qualified Domain Name.
      optional string addressType = 4;
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

        assertThat(recordedRequest.requestUrl!!.host).isEqualTo("2607:f8b0:400b:804::200e")
        assertThat(recordedRequest.handshakeServerNames).isEmpty()
      }
    
      /** No SNI for literal IPv4 addresses. */
      @Test
      fun ipv4() {
        val recordedRequest = requestToHostnameViaProxy("76.223.91.57")
        assertThat(recordedRequest.requestUrl!!.host).isEqualTo("76.223.91.57")
        assertThat(recordedRequest.handshakeServerNames).isEmpty()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. cni/pkg/iptables/iptables_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	compareToGolden(t, false, tt.name, ext.ExecutedAll)
    }
    
    func ipstr(ipv6 bool) string {
    	if ipv6 {
    		return "ipv6"
    	}
    	return "ipv4"
    }
    
    func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) {
    	t.Helper()
    	gotBytes := []byte(strings.Join(actual, "\n"))
    	goldenFile := filepath.Join("testdata", name+".golden")
    	if ipv6 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top