25#ifndef QMDNSENGINE_DNS_H
26#define QMDNSENGINE_DNS_H
31#include "qmdnsengine_export.h"
66QMDNSENGINE_EXPORT
bool parseName(
const QByteArray &packet, quint16 &offset, QByteArray &name);
79QMDNSENGINE_EXPORT
void writeName(QByteArray &packet, quint16 &offset,
const QByteArray &name, QMap<QByteArray, quint16> &nameMap);
88QMDNSENGINE_EXPORT
bool parseRecord(
const QByteArray &packet, quint16 &offset,
Record &record);
97QMDNSENGINE_EXPORT
void writeRecord(QByteArray &packet, quint16 &offset,
Record &record, QMap<QByteArray, quint16> &nameMap);
105QMDNSENGINE_EXPORT
bool fromPacket(
const QByteArray &packet,
Message &message);
112QMDNSENGINE_EXPORT
void toPacket(
const Message &message, QByteArray &packet);
119QMDNSENGINE_EXPORT QString typeName(quint16 type);
DNS message.
Definition message.h:61
DNS record.
Definition record.h:60