QDnsServiceRecord¶
The
QDnsServiceRecordclass stores information about a DNS SRV record. More…

Synopsis¶
Detailed Description¶
When performing a lookup on a service, zero or more records will be returned. Each record is represented by a
QDnsServiceRecordinstance.The meaning of the fields is defined in RFC 2782 .
See also
-
class
QDnsServiceRecord¶ QDnsServiceRecord(other)
- param other
Constructs an empty service record object.
Constructs a copy of
other.
-
PySide2.QtNetwork.QDnsServiceRecord.name()¶ - Return type
unicode
Returns the name for this record.
-
PySide2.QtNetwork.QDnsServiceRecord.port()¶ - Return type
quint16
Returns the port on the target host for this service record.
-
PySide2.QtNetwork.QDnsServiceRecord.priority()¶ - Return type
quint16
Returns the priority for this service record.
A client must attempt to contact the target host with the lowest-numbered priority.
-
PySide2.QtNetwork.QDnsServiceRecord.swap(other)¶ - Parameters
other –
QDnsServiceRecord
Swaps this service record instance with
other. This function is very fast and never fails.
-
PySide2.QtNetwork.QDnsServiceRecord.target()¶ - Return type
unicode
Returns the domain name of the target host for this service record.
-
PySide2.QtNetwork.QDnsServiceRecord.timeToLive()¶ - Return type
quint32
Returns the duration in seconds for which this record is valid.
-
PySide2.QtNetwork.QDnsServiceRecord.weight()¶ - Return type
quint16
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.
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.