X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/bed1e8f7b596cf1aa73c25b8b39dcffe145fa018..44617167ac216781537290dce9cc097df89dc3d2:/Server/src/controlclient.cpp?ds=sidebyside diff --git a/Server/src/controlclient.cpp b/Server/src/controlclient.cpp index 1f96585..e4293ae 100644 --- a/Server/src/controlclient.cpp +++ b/Server/src/controlclient.cpp @@ -44,7 +44,7 @@ ControlClient::~ControlClient(void) { cerr << __FILE__ << "(" << __LINE__ << ")" << ": destructor." << endl; #endif // DEBUG - // TODO Temporal: espero que el receiver muera. + // FIXME Temporal: espero que el receiver muera. if (receiver) { receiver->finish(); } @@ -64,6 +64,7 @@ ControlClient::ControlClient(const string& _host, << ": host = " << host << " | port = " << port << endl; #endif // DEBUG + // FIXME temporal receiver = new Receiver(7528, host); receiver->signal_finished().connect(SigC::slot_class(*this, &ControlClient::on_receiver_finished)); @@ -86,7 +87,7 @@ void ControlClient::real_run(void) throw() { socket >> response; // Si se cerró el socket. } catch (const ios::failure& e) { - // TODO poner buenos codigos de error. + // FIXME poner buenos codigos de error. signal_error().emit(1000000, "Se desconectó."); return; } catch (const sockerr& e) { @@ -101,8 +102,7 @@ void ControlClient::real_run(void) throw() { cerr << __FILE__ << "(" << __LINE__ << ")" << " : real_run() ERROR nro: " << e << endl; #endif // DEBUG - // TODO - es un error recuperable? O manda señal error()? - error_received(e, "La respuesta recibida es inválida"); + signal_error().emit(e, "La respuesta recibida es inválida"); continue; } switch (response.get_code()) {