From: Leandro Lucarella Date: Sat, 22 Nov 2003 02:55:57 +0000 (+0000) Subject: Se agrega un poco mas de info de debug y se corrige un detalle. X-Git-Tag: svn_import~205 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/e76a2b3254a9ddd5902230ca21c532168d0e93b4 Se agrega un poco mas de info de debug y se corrige un detalle. --- diff --git a/Server/src/controlclient.cpp b/Server/src/controlclient.cpp index e744d0d..75e330b 100644 --- a/Server/src/controlclient.cpp +++ b/Server/src/controlclient.cpp @@ -57,6 +57,11 @@ ControlClient::ControlClient(const string& _host, socket->connect(host.c_str(), port); host = socket->localhost(); port = socket->localport(); +#ifdef DEBUG + cerr << __FILE__ << "(" << __LINE__ << ")" + << ": REAL | host = " << host + << " | port = " << port << endl; +#endif // DEBUG receiver = new Receiver(7528, host); } @@ -64,6 +69,8 @@ void ControlClient::real_run(void) { #ifdef DEBUG cerr << __FILE__ << "(" << __LINE__ << ")" << ": real_run." << endl; + cerr << ": REAL | host = " << host + << " | port = " << port << endl; #endif // DEBUG try { } catch (const sockerr& e) { diff --git a/Server/src/main.cpp b/Server/src/main.cpp index 1f505ee..7ac8ff4 100644 --- a/Server/src/main.cpp +++ b/Server/src/main.cpp @@ -54,7 +54,7 @@ void on_finished(void) { int main(int argc, char* argv[]) { // Termina con mas informacion si hay una excepcion no manejada. - set_terminate (__gnu_cxx::__verbose_terminate_handler); + set_terminate(__gnu_cxx::__verbose_terminate_handler); // Bienvenida. cout << "PlaQui Server. Modo de uso: " << endl;