Code example for Socket

Methods: connect, getInputStream, getOutputStream, isConnected