QNetworkAddressEntry Class
The QNetworkAddressEntry class stores one IP address supported by a network interface, along with its associated netmask and broadcast address. More...
| Header: | #include <QNetworkAddressEntry> |
| qmake: | QT += network |
| Since: | Qt 4.2 |
This class was introduced in Qt 4.2.
Note: All functions in this class are reentrant.
Public Types
| enum | DnsEligibilityStatus { DnsEligibilityUnknown, DnsEligible, DnsIneligible } |
Detailed Description
Each network interface can contain zero or more IP addresses, which in turn can be associated with a netmask and/or a broadcast address (depending on support from the operating system).
This class represents one such group.
Member Type Documentation
enum QNetworkAddressEntry::DnsEligibilityStatus
This enum indicates whether a given host address is eligible to be published in the Domain Name System (DNS) or other similar name resolution mechanisms. In general, an address is suitable for publication if it is an address this machine will be reached at for an indeterminate amount of time, though it need not be permanent. For example, addresses obtained via DHCP are often eligible, but cryptographically-generated temporary IPv6 addresses are not.
| Constant | Value | Description |
|---|---|---|
QNetworkAddressEntry::DnsEligibilityUnknown | -1 | Qt and the operating system could not determine whether this address should be published or not. The application may need to apply further heuristics if it cannot find any eligible addresses. |
QNetworkAddressEntry::DnsEligible | 1 | This address is eligible for publication in DNS. |
QNetworkAddressEntry::DnsIneligible | 0 | This address should not be published in DNS and should not be transmitted to other parties, except maybe as the source address of an outgoing packet. |
This enum was introduced or modified in Qt 5.11.
See also dnsEligibility() and setDnsEligibility().