All pastes #957804 Raw Edit

Unnamed

public text v1 · immutable
#957804 ·published 2008-03-26 06:01 UTC
rendered paste body
public boolean StreamRequest(User[] userList) throws IOException{
        // First initialize the connection between sockets : 
        try {
             this.initialize();
         }
         catch (IOException e) {
             System.out.println("Error in initializing I/O");
         }
        //String msg = this.in.readLine();
        // System.out.println(msg);
         try{
           StringBuilder output = new StringBuilder("");
           String line = "";
           while (line = in.readLine() != null)
           {
              output.append(line);
           }   
              System.out.println(output.toString());
              //String msg = new String(buffer, 0, charsRead);
              //System.out.println("Received:\n" + msg);
         }catch(Exception e){System.out.println(e);}