X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/f17a708ff0e870baf2709bb0d63f32f166e082d3..78d6e1ce97611abe9f0d083033197773f93c33f7:/practicas/pipi/src/resolvproto.cpp diff --git a/practicas/pipi/src/resolvproto.cpp b/practicas/pipi/src/resolvproto.cpp index 55e960c..f55bbf2 100644 --- a/practicas/pipi/src/resolvproto.cpp +++ b/practicas/pipi/src/resolvproto.cpp @@ -4,7 +4,7 @@ #include /// Constructor -ResolvProtoRequest::ResolvProtoRequest(std::string name, uint8_t query_type): +ResolvProtoRequest::ResolvProtoRequest(std::string name, rp_pkt_type_t query_type): query_type(query_type), name(name) {} @@ -40,7 +40,7 @@ std::ostream& operator<< (std::ostream& os, const ResolvProtoRequest& rpr) } /// Constructor -ResolvProtoResponse::ResolvProtoResponse(): ret(R_NOTFOUND), ttl(0) +ResolvProtoResponse::ResolvProtoResponse(): ret(RP_RES_NOTFOUND), ttl(0) { } @@ -63,7 +63,7 @@ ResolvProtoResponse::ResolvProtoResponse(std::string buf) } /// Constructor -ResolvProtoResponse::ResolvProtoResponse(ret_t ret, uint32_t ttl, +ResolvProtoResponse::ResolvProtoResponse(rp_pkt_type_t ret, uint32_t ttl, const ipvec_t& ips): ret(ret), ttl(ttl), ips(ips) {}