List of usage examples for java.net Socket getTcpNoDelay
public boolean getTcpNoDelay() throws SocketException
From source file:Main.java
public static void main(String[] args) throws Exception { Socket client = new Socket("google.com", 80); client.setTcpNoDelay(true);/*from ww w .j av a 2 s . c o m*/ System.out.println(client.getTcpNoDelay()); client.close(); }