X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/46098de47811c686844e5cb8b1d8f1b59586e6b8..9ee7a97ec97d3dc41e1367f1f457d5ed5d5270ea:/practicas/pipi/src/resolvproto.h?ds=inline diff --git a/practicas/pipi/src/resolvproto.h b/practicas/pipi/src/resolvproto.h index 7caf4f8..ab41bf9 100644 --- a/practicas/pipi/src/resolvproto.h +++ b/practicas/pipi/src/resolvproto.h @@ -26,10 +26,8 @@ struct ResolvProtoRequest /// Nombre a buscar std::string name; - /// Constructor + /// Constructores ResolvProtoRequest(int fd); - - /// Constructor ResolvProtoRequest(std::string name, uint8_t query_type = QT_RECURSIVE); /// Envía por socket @@ -69,11 +67,11 @@ struct ResolvProtoResponse typedef std::vector< IPAddr > ipvec_t; ipvec_t ips; - /// Constructor + /// Constructores + ResolvProtoResponse(); ResolvProtoResponse(int fd); - - /// Constructor - ResolvProtoResponse(ret_t ret, uint32_t ttl); + ResolvProtoResponse(ret_t ret, uint32_t ttl = 0, + const ipvec_t& ips = ipvec_t()); /// Envía por socket void send(int sockfd) const throw (std::runtime_error);