Code example for Socket

Methods: bind, close, connect, getInputStream, setSoTimeout