6.0.0-rc4Source

QIPv6Address Struct

The QIPv6Address class stores an IPv6 address in a 16-byte array. More…

Header#include <QtNetwork/qhostaddress.h>
CMaketarget_link_libraries(app PRIVATE Nt::Network)
ModuleNt Network C++ Classes

List of all members, including inherited members

Public Functions

quint8 &operator[](int i)
quint8operator[](int i) const

Public Variables

quint8c

Detailed Description

The bytes are in network byte order. Application code usually refers to this type through the Q_IPV6ADDR alias.

See also QHostAddress.

Differences from Qt

There is no operator==() or operator!=(); compare the bytes or the owning QHostAddress objects instead.

Member Function Documentation

quint8 & QIPv6Address::operator[](int i)

Returns a reference to the byte at index i, from 0 to 15.

quint8 QIPv6Address::operator[](int i) const

This is an overloaded function.

Member Variable Documentation

quint8 QIPv6Address::c

The 16 bytes of the address, in network byte order.