X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/384545ce291041b819661bf6d66b00e4c8ee88fd..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 d510483..1ebf385 100644 --- a/practicas/pipi/src/test_nameserver_resolvnext.cpp +++ b/practicas/pipi/src/test_nameserver_resolvnext.cpp @@ -9,14 +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"; - ns.resolv_next(N("tito.mi.super.nombre")); - ns.resolv_next(N("juan.mi.super.nombre")); - ns.resolv_next(N("pepe.otro.mi.super.nombre")); - ns.resolv_next(N("pepe.mas.mi.super.nombre")); - ns.resolv_next(N("super.nombre")); - ns.resolv_next(N("nada.que.ver")); + 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; }