public final class NetworkConstants 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.
|
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
Copyright © 2008-2012 The Netty Project. All Rights Reserved.