Code example for Socket

Methods: getInputStreamgetOutputStreamsetKeepAlive