Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getNetworkInterfaces (0.07 sec)

  1. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top