Code example for Socket

Methods: setKeepAlive, setSoTimeout