public final class NetUtils2
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getTcpQuickack(java.net.Socket socket)
Returns the value of TCP_QUICKACK option.
|
static boolean |
setTcpQuickack(java.net.Socket socket,
boolean value)
Sets the value of TCP_QUICKACK option.
|
public static boolean getTcpQuickack(java.net.Socket socket)
throws java.io.IOException
socket - the socketjava.io.IOException - on I/O exceptionjava.lang.UnsupportedOperationException - if TCP_QUICKACK is not supportedpublic static boolean setTcpQuickack(java.net.Socket socket,
boolean value)
socket - the socketvalue - the value to set