]> git.llucax.com Git - z.facultad/75.74/practicos.git/blobdiff - practicas/pipi/src/test_resolvproto.cpp
Bugfix al mostrar request/response para debug en send_loop().
[z.facultad/75.74/practicos.git] / practicas / pipi / src / test_resolvproto.cpp
index ba1c13694bda568d71a81fabfb65ab1a38d379b9..964240bf14d90f7832d4e7e16d746fea3ad65c58 100644 (file)
@@ -6,11 +6,11 @@
 
 int main()
 {
-    ResolvProtoRequest req("hola.tito", ResolvProtoRequest::QT_RECURSIVE);
+    ResolvProtoRequest req("hola.tito", RP_REQ_RECURSIVE);
     std::cout << "Request Original: " << req << "\n";
     ResolvProtoRequest req2 = std::string(req);
     std::cout << "Request Reconstruido: " << req2 << "\n";
-    ResolvProtoResponse res(ResolvProtoResponse::R_A, 600);
+    ResolvProtoResponse res(RP_RES_A, 600);
     res.ips.push_back(IPAddr("10.10.10.2"));
     res.ips.push_back(IPAddr("100.20.45.21"));
     res.ips.push_back(IPAddr("230.23.62.189"));