Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getNetworkInterfaces (0.31 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecDebugIntegrationTest.groovy

        private static final String nonLoopbackAddress() {
            println("Looking at network interfaces")
            def address = Collections.list(NetworkInterface.getNetworkInterfaces())
                .collectMany { it.isLoopback() ? [] : Collections.list(it.inetAddresses) }
                .find { it instanceof Inet4Address && !it.isLoopbackAddress() }
                ?.hostAddress
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/CommandLineIntegrationSpec.groovy

            cleanup:
            jdwpClient.close()
        }
    
        private static String nonLoopbackAddress() {
            println("Looking at network interfaces")
            def address = Collections.list(NetworkInterface.getNetworkInterfaces())
                .collectMany { it.isLoopback() ? [] : Collections.list(it.inetAddresses) }
                .find { it instanceof Inet4Address && !it.isLoopbackAddress() }
                .hostAddress
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 05:05:14 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

      private static ImmutableSet<String> getMachineScopesAndInterfaces() throws SocketException {
        ImmutableSet.Builder<String> builder = ImmutableSet.builder();
        Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
        assertTrue(interfaces.hasMoreElements());
        while (interfaces.hasMoreElements()) {
          NetworkInterface i = interfaces.nextElement();
          builder.add(i.getName()).add(String.valueOf(i.getIndex()));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top