public enum NetworkUtil extends Enum<NetworkUtil>
| Modifier and Type | Field and Description |
|---|---|
static int |
TCP_BUFFER_SIZE |
static int |
TCP_SAFE_SIZE |
static boolean |
TCP_USE_PADDING |
| Modifier and Type | Method and Description |
|---|---|
static void |
setTcpNoDelay(Socket socket,
boolean tcpNoDelay) |
static NetworkUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final int TCP_BUFFER_SIZE
public static final int TCP_SAFE_SIZE
public static final boolean TCP_USE_PADDING
public static NetworkUtil[] values()
for (NetworkUtil c : NetworkUtil.values()) System.out.println(c);
public static NetworkUtil valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void setTcpNoDelay(Socket socket, boolean tcpNoDelay) throws SocketException
SocketExceptionCopyright © 2023. All rights reserved.