Code example for Socket

Methods: setKeepAlive, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTcpNoDelay