From: Leandro Lucarella Date: Thu, 22 Jun 2006 20:55:28 +0000 (+0000) Subject: Detalles estéticos. X-Git-Tag: svn_import~32 X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/commitdiff_plain/325913ed27a683b8a13033aeb8dc693376f4a7dc Detalles estéticos. --- diff --git a/practicas/pipi/src/nameserver.cpp b/practicas/pipi/src/nameserver.cpp index 45ec63d..3b54140 100644 --- a/practicas/pipi/src/nameserver.cpp +++ b/practicas/pipi/src/nameserver.cpp @@ -212,7 +212,7 @@ struct search_zone: std::unary_function< NameServer::Zone, bool > void NameServer::resolv_next(const Name& n) { #ifdef DEBUG_RESOLV - std::cerr<< "resolv_next -> tratando de resolver: " << n << "\n"; + std::cerr << "resolv_next -> tratando de resolver: " << n << "\n"; #endif search_zone zs(n); bool found; @@ -223,7 +223,7 @@ void NameServer::resolv_next(const Name& n) { // TODO mandar resultados? #ifdef DEBUG_RESOLV - std::cerr<< "resolv_next found (local/hijo): " << zs.crecord << "\n"; + std::cerr << "resolv_next found (local/hijo): " << zs.crecord << "\n"; #endif return; } @@ -231,16 +231,17 @@ void NameServer::resolv_next(const Name& n) { // TODO mandar NOT FOUND #ifdef DEBUG_RESOLV - std::cerr<< "resolv_next NOT FOUND (es local pero no existe)\n"; + std::cerr << "resolv_next NOT FOUND (es local pero no existe)\n"; #endif return; } cache_t::const_iterator i = cache.find(n); + // TODO TTL!?! if (i != cache.end()) { // TODO mandar resultados? #ifdef DEBUG_RESOLV - std::cerr<< "resolv_next found (en cache): " << i->second << "\n"; + std::cerr << "resolv_next found (en cache): " << i->second << "\n"; #endif return; } @@ -255,7 +256,7 @@ void NameServer::resolv_next(const Name& n) } // TODO enviar NOT FOUND #ifdef DEBUG_RESOLV - std::cerr<< "resolv_next NOT FOUND (no hay padre)\n"; + std::cerr << "resolv_next NOT FOUND (no hay padre)\n"; #endif }