内容表

上一话题

QDnsMailExchangeRecord

下一话题

QDnsTextRecord

QDnsServiceRecord

QDnsServiceRecord class stores information about a DNS SRV record. 更多

Inheritance diagram of PySide2.QtNetwork.QDnsServiceRecord

概要

函数

详细描述

When performing a lookup on a service, zero or more records will be returned. Each record is represented by a QDnsServiceRecord 实例。

字段含义的定义在 RFC 2782 .

另请参阅

QDnsLookup

class QDnsServiceRecord

QDnsServiceRecord(other)

param other

QDnsServiceRecord

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.