Package org.ros.address
Class InetAddressFactory
java.lang.Object
org.ros.address.InetAddressFactory
- Author:
- damonkohler@google.com (Damon Kohler)
-
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddressnewFromHostString(String host) Creates anInetAddresswith both an IP and a host set so that no further resolving will take place.static InetAddressstatic InetAddressstatic InetAddressnewNonLoopbackForNetworkInterface(NetworkInterface networkInterface)
-
Method Details
-
newNonLoopback
-
newNonLoopbackForNetworkInterface
-
newFromHostString
Creates anInetAddresswith 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 thanAddress.LOCALHOSTis specified, this method trys to find a non-loopback IP associated with the supplied host name. If the specified host name isAddress.LOCALHOST, this method returns a loopback address.- Parameters:
host-- Returns:
- an
InetAddresswith both an IP and a host set (no further resolving will take place)
-
newLoopback
-