Package | Description |
---|---|
org.netbeans.core.network.utils |
Utilities related to network.
|
Modifier and Type | Method and Description |
---|---|
static IpAddressUtils.IpTypePreference |
IpAddressUtils.IpTypePreference.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpAddressUtils.IpTypePreference[] |
IpAddressUtils.IpTypePreference.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static List<InetAddress> |
LocalAddressUtils.getDatagramLocalInetAddress(IpAddressUtils.IpTypePreference ipTypePref)
Returns the address of the local host, found by using UDP method.
|
static InetAddress[] |
LocalAddressUtils.getLocalHostAddresses(IpAddressUtils.IpTypePreference ipTypePref)
Returns the addresses of the local host.
|
static InetAddress |
LocalAddressUtils.getLoopbackAddress(IpAddressUtils.IpTypePreference ipTypePref)
Returns the loopback address.
|
static InetAddress |
LocalAddressUtils.getMostLikelyLocalInetAddress(IpAddressUtils.IpTypePreference ipTypePref)
Returns the host's IP address.
|
static InetAddress[] |
LocalAddressUtils.getMostLikelyLocalInetAddresses(IpAddressUtils.IpTypePreference ipTypePref)
Returns the host's IP addresses.
|
static List<InetAddress> |
LocalAddressUtils.getPrioritizedLocalHostAddresses(IpAddressUtils.IpTypePreference ipTypePref)
Returns a prioritized list of local host addresses.
|
static InetAddress |
IpAddressUtils.nameResolve(String host,
int timeoutMs,
IpAddressUtils.IpTypePreference ipTypePref)
Performs a name service lookup with a timeout.
|
static InetAddress[] |
IpAddressUtils.nameResolveArr(String host,
int timeoutMs,
IpAddressUtils.IpTypePreference ipTypePref)
Performs a name service lookup with a timeout.
|