Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getByAddress (0.07 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

            return Inet6Address.getByAddress(
                v6Address.getHostAddress(), v6Address.getAddress(), interfaceIndex);
          }
          try {
            NetworkInterface asInterface = NetworkInterface.getByName(scope);
            if (asInterface == null) {
              throw formatIllegalArgumentException("No such interface: '%s'", scope);
            }
            return Inet6Address.getByAddress(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

        assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1")
        socketAddress = InetSocketAddress(InetAddress.getByAddress(byteArrayOf(127, 0, 0, 1)), 1234)
        assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1")
        socketAddress =
          InetSocketAddress(
            InetAddress.getByAddress("foobar", byteArrayOf(127, 0, 0, 1)),
            1234,
          )
        assertThat(socketAddress.socketHost).isEqualTo("127.0.0.1")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

                    System.arraycopy(data, offset + 4, addr, 0, 4);
                    return InetAddress.getByAddress(addr);
                } else if (family == 23) { // AF_INET6
                    byte[] addr = new byte[16];
                    System.arraycopy(data, offset + 8, addr, 0, 16);
                    return InetAddress.getByAddress(addr);
                }
            } catch (Exception e) {
                // Ignore parsing errors
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

        proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, socketAddress))
    
        // Define two host names for the DNS routing of fake proxy servers
        val proxyServer1 = InetAddress.getByAddress("proxyServer1", byteArrayOf(127, 0, 0, 2))
        val proxyServer2 = InetAddress.getByAddress("proxyServer2", byteArrayOf(127, 0, 0, 3))
    
        println("Proxy Server 1 is ${server1.socketAddress}")
        println("Proxy Server 2 is ${server2.socketAddress}")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

            return Inet6Address.getByAddress(
                v6Address.getHostAddress(), v6Address.getAddress(), interfaceIndex);
          }
          try {
            NetworkInterface asInterface = NetworkInterface.getByName(scope);
            if (asInterface == null) {
              throw formatIllegalArgumentException("No such interface: '%s'", scope);
            }
            return Inet6Address.getByAddress(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        }
      }
    
      @Test
      fun startIsIdempotentIfAddressIsConsistent() {
        val other = MockWebServer()
        val addressA = InetAddress.getByAddress("localhost", byteArrayOf(127, 0, 0, 1))
        val addressB = InetAddress.getByAddress("localhost", byteArrayOf(127, 0, 0, 2))
        other.use {
          other.start(addressA, 0)
    
          // Same address is okay.
          other.start(addressA, 0)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

                            InetAddress userAddress = null;
                            try {
                                userAddress = InetAddress.getByAddress(addressOctets.getOctets());
                            } catch (UnknownHostException e) {}
                            this.userAddresses.add(userAddress);
                        }
                    }
                    break;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                            this.addresses = new UniAddress[1];
                            this.addresses[0] = new UniAddress(java.net.InetAddress.getByAddress(host, ip));
                        }
                    } else if (host.length() == 0) {
                        try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

            .build()
        assert200Http2Response(execute(url), server.hostName)
        val sanUrl = url.newBuilder().host("san.com").build()
        dns["san.com"] =
          Arrays.asList(
            InetAddress.getByAddress("san.com", byteArrayOf(0, 0, 0, 0)),
            serverIps[0],
          )
        assert200Http2Response(execute(sanUrl), "san.com")
        assertThat(client.connectionPool.connectionCount()).isEqualTo(1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
Back to top