From 325913ed27a683b8a13033aeb8dc693376f4a7dc Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 22 Jun 2006 20:55:28 +0000 Subject: [PATCH] =?utf8?q?Detalles=20est=C3=A9ticos.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- practicas/pipi/src/nameserver.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 } -- 2.43.0