public final class NetUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static InetAddress |
LOCALHOST
The
InetAddress representing the host machine
We cache this because some machines take almost forever to return from
InetAddress.getLocalHost(). |
static NetworkInterface |
LOOPBACK_IF
The loopback
NetworkInterface on the current machine |
static int |
SOMAXCONN
The SOMAXCONN value of the current machine.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createByteArrayFromIpAddressString(String ipAddressString)
Creates an byte[] based on an ipAddressString.
|
static boolean |
isValidIp4Word(String word) |
static boolean |
isValidIpV4Address(String value)
Takes a string and parses it to see if it is a valid IPV4 address.
|
static boolean |
isValidIpV6Address(String ipAddress) |
public static final InetAddress LOCALHOST
InetAddress representing the host machine
We cache this because some machines take almost forever to return from
InetAddress.getLocalHost(). This may be due to incorrect
configuration of the hosts and DNS client configuration files.public static final NetworkInterface LOOPBACK_IF
NetworkInterface on the current machinepublic static final int SOMAXCONN
public static byte[] createByteArrayFromIpAddressString(String ipAddressString)
public static boolean isValidIpV6Address(String ipAddress)
public static boolean isValidIp4Word(String word)
public static boolean isValidIpV4Address(String value)
Copyright © 2008-2013 The Netty Project. All Rights Reserved.