Beispiel #1
0
  public void run() {
    try {
      this.socket = new Socket(this.server_address, this.port);

      socket_in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
      socket_out = new PrintWriter(socket.getOutputStream(), true);

      cc_manager =
          new CommonCommandsManager(user_role, cmd_listener, socket, socket_in, socket_out);
      cc_manager.AnnounceStart();

    } catch (IOException e) {
      e.printStackTrace();
    }
  }
Beispiel #2
0
 public void manageUserInput(String user_input) {
   cc_manager.ManageUserInput(user_input);
 }