code: protected Response request (String req)
          throws IOException
      {
          System.err.println("REQ:" + req);
  
          // send the request to the server
          _out.println(req);
          _out.flush();
  
          // now read the response
          String rspstr = _in.readLine();
          // if they closed the connection on us, we should deal
          if (rspstr == null) {
              throw new EOFException();
          }
          System.err.println("RSP:" + rspstr);
  
          // parse the response
          Response rsp = new Response();
          String codestr = rspstr;
  
          // assume the response is just a code unless we see a space
          int sidx = rspstr.indexOf(" ");
          if (sidx != -1) {
              codestr = rspstr.substring(0, sidx);
              rsp.message = rspstr.substring(sidx+1);
          }
  
          try {
              rsp.code = Integer.parseInt(codestr);
          } catch (NumberFormatException nfe) {
              rsp.code = 599;
              rsp.message = "Unparseable response";
          }
  
          return rsp;
      }
docs: Issues a request to the CDDB server and parses the response.