summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_network_kernel_qhostaddress.cpp
blob: 0b90404d6f1b19c7d9dba42bf833295325f8dd0f (plain)
1
2
3
4
5
6
7
8
//! [0]
Q_IPV6ADDR addr = hostAddr.toIPv6Address();
// addr contains 16 unsigned characters

for (int i = 0; i < 16; ++i) {
    // process addr[i]
}
//! [0]