Code example for Socket

Methods: close, getInputStream, getOutputStream