QMdnsEngine
0.1.0
Multicast DNS library for Qt applications
|
DNS query. More...
#include <qmdnsengine/query.h>
Public Member Functions | |
Query () | |
Create an empty query. | |
Query (const Query &other) | |
Create a copy of an existing query. | |
virtual | ~Query () |
Destroy the query. | |
QByteArray | name () const |
Retrieve the name being queried. | |
Query & | operator= (const Query &other) |
Assignment operator. | |
void | setName (const QByteArray &name) |
Set the name to query. | |
void | setType (quint16 type) |
Set the type of record to query. More... | |
void | setUnicastResponse (bool unicastResponse) |
Set whether a unicast response is desired. | |
quint16 | type () const |
Retrieve the type of record being queried. | |
bool | unicastResponse () const |
Determine if a unicast response is desired. | |
This class represents a query for a DNS record. For example, to query for the IPv4 address of a local host:
void QMdnsEngine::Query::setType | ( | quint16 | type | ) |
Constants, such as QMdnsEngine::SRV are provided for convenience.