public static void main(String[] args)
    {   
        
        Socket cliente = null;
        try
        {
            cliente = new Socket("127.0.0.1", 2050);
        }        
        catch(UnknownHostException uhe)
        {
           
        }
        catch(IOException ioe)
        {
            
        }
        
        if(cliente == null)
            System.exit(-1);
        
        DataInputStream in = null;
        DataOutputStream out = null;
        
        try
        {
            in = new DataInputStream(cliente.getInputStream());
            out = new DataOutputStream(cliente.getOutputStream());
            out.writeUTF("getPuntos");
            out.flush();
            String jsonListaPuntos=in.readUTF();
      //      Type type = new TypeToken<List<Puntos>>(){}.getType();
//            List<Puntos> lp = gson.fromJson(jsonListaPuntos, type);
//            for (Iterator<Puntos> it = lp.iterator(); it.hasNext();) {
//                Puntos puntos = it.next();
//               // System.out.println(puntos.getNombre());
//            }
        }
        catch(Exception ioe)
        {
           System.out.println(ioe); 
        }
        finally
        {
            try
            {
                out.close();
                in.close();
                cliente.close();
            }
            catch(Exception e)
            {
               
            }                
        }    
    }