QDnsServiceRecordclass stores information about a DNS SRV record. 更多 …
When performing a lookup on a service, zero or more records will be returned. Each record is represented by a
QDnsServiceRecord实例。字段含义的定义在 RFC 2782 .
另请参阅
QDnsServiceRecord
¶
QDnsServiceRecord(other)
- param other
Constructs an empty service record object.
构造副本为
other
.
PySide2.QtNetwork.QDnsServiceRecord.
name
(
)
¶
unicode
返回此记录的名称。
PySide2.QtNetwork.QDnsServiceRecord.
port
(
)
¶
quint16
Returns the port on the target host for this service record.
PySide2.QtNetwork.QDnsServiceRecord.
priority
(
)
¶
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
)
¶
other
–
QDnsServiceRecord
Swaps this service record instance with
other
。此函数非常快,且从不失败。
PySide2.QtNetwork.QDnsServiceRecord.
target
(
)
¶
unicode
Returns the domain name of the target host for this service record.
PySide2.QtNetwork.QDnsServiceRecord.
timeToLive
(
)
¶
quint32
返回此记录有效的持续时间 (以秒为单位)。
PySide2.QtNetwork.QDnsServiceRecord.
weight
(
)
¶
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.