public final class Tcp.SO$.TcpNoDelay extends java.lang.Object implements Inet.SocketOption, scala.Product, scala.Serializable
Inet.SocketOption
to enable or disable TCP_NODELAY
(disable or enable Nagle's algorithm)
Please note, that TCP_NODELAY is enabled by default.
For more information see java.net.Socket.setTcpNoDelay
Constructor and Description |
---|
TcpNoDelay(boolean on) |
Modifier and Type | Method and Description |
---|---|
void |
afterConnect(java.net.Socket s)
Action to be taken for this option after connect returned (i.e.
|
boolean |
on() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeConnect, beforeDatagramBind, beforeServerSocketBind
public boolean on()
public void afterConnect(java.net.Socket s)
Inet.SocketOption
afterConnect
in interface Inet.SocketOption
s
- (undocumented)