X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/c048ca1252065d6705763043eb2ff750d95e52e9..63516fdd4cb64b01971750be1d29d7244b1f9e5e:/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..2c62274 100644 --- a/practicas/pipi/src/test_nameserver_resolvnext.cpp +++ b/practicas/pipi/src/test_nameserver_resolvnext.cpp @@ -11,13 +11,14 @@ int main(int argc, char* argv[]) std::ifstream ifs("test_nameserver_zones.txt"); 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; }