Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for canonicalizeInetAddressIPv6RepresentationOfCompatibleIPV4 (0.28 sec)

  1. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

        val addressBIpv4 = byteArrayOf(192.toByte(), 168.toByte(), 0, 1)
        assertThat(canonicalizeInetAddress(addressBIpv6)).isEqualTo(addressBIpv4)
      }
    
      @Test
      fun canonicalizeInetAddressIPv6RepresentationOfCompatibleIPV4() {
        val addressAIpv6 = decodeIpv6("::192.168.0.1")!!
        assertThat(canonicalizeInetAddress(addressAIpv6)).isEqualTo(
          ByteArray(12) +
            byteArrayOf(
              192.toByte(),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 30 06:23:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top