Class InetAddressFactory

java.lang.Object
org.ros.address.InetAddressFactory

public class InetAddressFactory extends Object
Author:
damonkohler@google.com (Damon Kohler)
  • Method Details

    • newNonLoopback

      public static InetAddress newNonLoopback()
    • newNonLoopbackForNetworkInterface

      public static InetAddress newNonLoopbackForNetworkInterface(NetworkInterface networkInterface)
    • newFromHostString

      public static InetAddress newFromHostString(String host)
      Creates an InetAddress with both an IP and a host set so that no further resolving will take place. If an IP address string is specified, this method ensures that it will be used in place of a host name. If a host name other than Address.LOCALHOST is specified, this method trys to find a non-loopback IP associated with the supplied host name. If the specified host name is Address.LOCALHOST, this method returns a loopback address.
      Parameters:
      host -
      Returns:
      an InetAddress with both an IP and a host set (no further resolving will take place)
    • newLoopback

      public static InetAddress newLoopback()