Code example for Socket

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