Code example for Socket

Methods: getInputStream, getOutputStream, setSoTimeout