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);
}
#ifdef DEBUG
cerr << __FILE__ << "(" << __LINE__ << ")"
<< ": real_run." << endl;
+ cerr << ": REAL | host = " << host
+ << " | port = " << port << endl;
#endif // DEBUG
try {
} catch (const sockerr& e) {
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;