![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QDnsServiceRecord class stores information about a DNS SRV record. More...
#include <qdnslookup.h>
Public Member Functions | |
QDnsServiceRecord () | |
Constructs an empty service record object. | |
QDnsServiceRecord (const QDnsServiceRecord &other) | |
Constructs a copy of other. | |
QDnsServiceRecord & | operator= (QDnsServiceRecord &&other) noexcept |
QDnsServiceRecord & | operator= (const QDnsServiceRecord &other) |
Assigns the data of the other object to this record object, and returns a reference to it. | |
~QDnsServiceRecord () | |
Destroys a service record. | |
void | swap (QDnsServiceRecord &other) noexcept |
\memberswap{service record instance} | |
QString | name () const |
Returns the name for this record. | |
quint16 | port () const |
Returns the port on the target host for this service record. | |
quint16 | priority () const |
Returns the priority for this service record. | |
QString | target () const |
Returns the domain name of the target host for this service record. | |
quint32 | timeToLive () const |
Returns the duration in seconds for which this record is valid. | |
quint16 | weight () const |
Returns the weight for this service record. |
Friends | |
class | QDnsLookupRunnable |
The QDnsServiceRecord class stores information about a DNS SRV record.
\inmodule QtNetwork
When performing a lookup on a service, zero or more records will be returned. Each record is represented by a QDnsServiceRecord instance.
The meaning of the fields is defined in \l{http://www.rfc-editor.org/rfc/rfc2782.txt}{RFC 2782}.
Definition at line 98 of file qdnslookup.h.
QDnsServiceRecord::QDnsServiceRecord | ( | ) |
Constructs an empty service record object.
Definition at line 1091 of file qdnslookup.cpp.
QDnsServiceRecord::QDnsServiceRecord | ( | const QDnsServiceRecord & | other | ) |
Constructs a copy of other.
Definition at line 1100 of file qdnslookup.cpp.
QDnsServiceRecord::~QDnsServiceRecord | ( | ) |
Destroys a service record.
Definition at line 1109 of file qdnslookup.cpp.
QString QDnsServiceRecord::name | ( | ) | const |
Returns the name for this record.
Definition at line 1117 of file qdnslookup.cpp.
QDnsServiceRecord & QDnsServiceRecord::operator= | ( | const QDnsServiceRecord & | other | ) |
Assigns the data of the other object to this record object, and returns a reference to it.
Definition at line 1179 of file qdnslookup.cpp.
|
inlinenoexcept |
Definition at line 103 of file qdnslookup.h.
quint16 QDnsServiceRecord::port | ( | ) | const |
Returns the port on the target host for this service record.
Definition at line 1126 of file qdnslookup.cpp.
quint16 QDnsServiceRecord::priority | ( | ) | const |
Returns the priority for this service record.
A client must attempt to contact the target host with the lowest-numbered priority.
Definition at line 1138 of file qdnslookup.cpp.
|
inlinenoexcept |
\memberswap{service record instance}
Definition at line 107 of file qdnslookup.h.
QString QDnsServiceRecord::target | ( | ) | const |
Returns the domain name of the target host for this service record.
Definition at line 1147 of file qdnslookup.cpp.
quint32 QDnsServiceRecord::timeToLive | ( | ) | const |
Returns the duration in seconds for which this record is valid.
Definition at line 1156 of file qdnslookup.cpp.
quint16 QDnsServiceRecord::weight | ( | ) | const |
Returns the weight for this service record.
The weight field specifies a relative weight for entries with the same priority. Entries with higher weights should be selected with a higher probability.
Definition at line 1169 of file qdnslookup.cpp.
|
friend |
Definition at line 118 of file qdnslookup.h.