1#if defined(HAVE_CONFIG_H)
14#define NS_RRFIXEDSZ 10
33 throw HostException(
"Failed parse of Host record", __FILE__, __LINE__);
38 if (overlay.
dataLength() != (
int)
sizeof(in_addr))
40 throw HostException(
"Failed parse of Host record", __FILE__, __LINE__);
42 memcpy(&mAddr, overlay.
data(),
sizeof(in_addr));
int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, int alen, char **s, long *enclen)
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
DnsHostRecord(const RROverlay &)
virtual EncodeStream & dump(EncodeStream &strm) const
virtual bool isSameValue(const Data &value) const
virtual const Data & name() const
static Data inet_ntop(const struct in_addr &addr)
Converts from the network format to presentation format.
const unsigned char * msg() const
const unsigned char * data() const
dcm! – add UnusedChecking(_enum) below;