Simple-Chat/src/UdpChat.cc
void intepreter() {
  std::string msg;
  while (proc_running) {
    std::cout << ">>> " << std::flush;
    getline(std::cin, msg);
    if (msg.empty())
      continue;
    usercmd = msg;
    userevent = true;
  }
  std::cout << "client_talk finished cleanly" << std::endl;
}
// Client's thread for user input
Client's thread for user input
Client ' s thread for user input
void intepreter() {
  std::string msg;
  while (proc_running) {
    std::cout << ">>> " << std::flush;
    getline(std::cin, msg);
    if (msg.empty())
      continue;
    usercmd = msg;
    userevent = true;
  }
  std::cout << "client_talk finished cleanly" << std::endl;
}
void intepreter ( ) { std :: string msg ; while ( proc_running ) { std :: cout << " " << std :: flush ; getline ( std :: cin , msg ) ; if ( msg . empty ( ) ) continue ; usercmd = msg ; userevent = true ; } std :: cout << " " << std :: endl ; }
Client's thread for user input
Client ' s thread for user input