Code example for Socket

Methods: getInputStreamgetOutputStreamsetSoTimeout