X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/c048ca1252065d6705763043eb2ff750d95e52e9..f48d95822c7810a45daf26854de7262ccc20a940:/practicas/pipi/src/test_nameserver_resolvnext.cpp diff --git a/practicas/pipi/src/test_nameserver_resolvnext.cpp b/practicas/pipi/src/test_nameserver_resolvnext.cpp index 11fc133..1ebf385 100644 --- a/practicas/pipi/src/test_nameserver_resolvnext.cpp +++ b/practicas/pipi/src/test_nameserver_resolvnext.cpp @@ -9,15 +9,16 @@ int main(int argc, char* argv[]) { typedef NameServer::Name N; std::ifstream ifs("test_nameserver_zones.txt"); - NameServer ns(ifs); + /* XXX NameServer ns(ifs); std::cout << ns << "\n"; - std::cout << ns.resolv_next(N("tito.mi.super.nombre")) << "\n"; - std::cout << ns.resolv_next(N("juan.mi.super.nombre")) << "\n"; - std::cout << ns.resolv_next(N("pepe.otro.mi.super.nombre")) << "\n"; - std::cout << ns.resolv_next(N("pepe.mas.mi.super.nombre")) << "\n"; - std::cout << ns.resolv_next(N("super.nombre")) << "\n"; - std::cout << ns.resolv_next(N("nada.que.ver")) << "\n"; - std::cout << ns.resolv_next(N("tito.mas.super.nombres")) << "\n"; + std::cout << ns.resolv_direct(N("tito.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_direct(N("juan.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_direct(N("pepe.otro.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_direct(N("pepe.mas.mi.super.nombre")) << "\n"; + std::cout << ns.resolv_direct(N("super.nombre")) << "\n"; + std::cout << ns.resolv_direct(N("nada.que.ver")) << "\n"; + std::cout << ns.resolv_direct(N("tito.mas.super.nombres")) << "\n"; + std::cout << ns.resolv_recursive(N("nada.que.ver")) << "\n";*/ return 0; }