/// 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
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);