public class NetUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TCP_BACKLOG_LINUX |
static int |
DEFAULT_TCP_BACKLOG_WINDOWS |
static String |
TCP_BACKLOG_SETTING_LOCATION |
| Constructor and Description |
|---|
NetUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDefaultTcpBacklog() |
static int |
getTcpBacklog()
The SOMAXCONN value of the current machine.
|
static int |
getTcpBacklog(int tcpBacklog)
The SOMAXCONN value of the current machine.
|
static boolean |
isWindows() |
public static final int DEFAULT_TCP_BACKLOG_WINDOWS
public static final int DEFAULT_TCP_BACKLOG_LINUX
public static final String TCP_BACKLOG_SETTING_LOCATION
public static int getTcpBacklog()
200 is used as a
default value for Windows or 128 for others.public static int getTcpBacklog(int tcpBacklog)
defaultBacklog argument is
usedpublic static boolean isWindows()
public static int getDefaultTcpBacklog()
Copyright © 2016. All rights reserved.