Code example for Socket

Methods: close, connect, getInputStream, getOutputStream