Socket TCP Control
- setTCPNoDelay(boolean on) : set to true means all packets
are sent immediately, without waiting for an ACK on last
packet.
- setSoLinger(boolean on, int seconds) : what to do with
datagrams that have not been sent when socket is closed. wait
seconds if on to send.
- setSoTimeout(int milliseconds) : do not block forever,
instead block for milliseconds.
- setReceiveBufferSize(int size) : sets the size of the
receiving buffer.
- setSendBufferSize(int size) : sets the size of the sending
buffer.
- setKeepAlive(boolean on) : if on then send occasional
packets on idle connections.
José M. Vidal
.
6 of 9