The ConversionMode type is a typedef for QFlags. This enum was introduced or modified in Qt 5.8. QHostAddress("::1") will compare equal to QHostAddress("127.0.0.1").Īll unspecified addresses will compare equal, namely AnyIPv4, AnyIPv6 and Any. ![]() Therefore QHostAddress("::192.168.1.1") will compare equal to QHostAddress("192.168.1.1").Ĭonvert the IPv6 loopback addresses to its IPv4 equivalent when comparing. Therefore QHostAddress("::ffff:192.168.1.1") will compare equal to QHostAddress("192.168.1.1").Ĭonvert IPv4-compatible IPv6 addresses (RFC 4291 sect. Operator=(QHostAddress::SpecialAddress other) constĭon't convert IPv6 addresses to IPv4 when comparing two QHostAddress objects of different protocols, so they will always be considered different.Ĭonvert IPv4-mapped IPv6 addresses (RFC 4291 sect. Operator=(const QHostAddress & other) const Operator=(QHostAddress::SpecialAddress address) Operator!=(QHostAddress::SpecialAddress other) const Operator!=(const QHostAddress & other) const SetAddress(QHostAddress::SpecialAddress address) ![]() IsInSubnet(const QHostAddress & subnet, int netmask) const IsEqual(const QHostAddress & other, QHostAddress::ConversionMode mode = TolerantConversion) const QHostAddress(const QHostAddress & address) ![]() QHostAddress(QHostAddress::SpecialAddress address)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |