Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhostaddress.cpp File Reference

(04ee4e627bf7002ece660f70eedf29b9da4006c6)

#include "qhostaddress.h"
#include "qhostaddress_p.h"
#include "private/qipaddress_p.h"
#include "qdebug.h"
#include <netinet/in.h>
#include "qplatformdefs.h"
#include "qstringlist.h"
#include "qendian.h"
#include <qdatastream.h>
#include "moc_qhostaddress.cpp"
Include dependency graph for qhostaddress.cpp:

Go to the source code of this file.

Functions

static bool convertToIpv4 (quint32 &a, const Q_IPV6ADDR &a6, const QHostAddress::ConversionMode mode)
static bool parseIp6 (const QString &address, QIPAddressUtils::IPv6Address &addr, QString *scopeId)
static void clearBits (quint8 *where, int start, int end)
QDebug operator<< (QDebug d, const QHostAddress &address)
size_t qHash (const QHostAddress &key, size_t seed)

Function Documentation

◆ clearBits()

void clearBits ( quint8 * where,
int start,
int end )
static

Definition at line 292 of file qhostaddress.cpp.

◆ convertToIpv4()

bool convertToIpv4 ( quint32 & a,
const Q_IPV6ADDR & a6,
const QHostAddress::ConversionMode mode )
static

parses v4-mapped addresses or the AnyIPv6 address and stores in a; returns true if the address was one of those

Definition at line 58 of file qhostaddress.cpp.

◆ operator<<()

QDebug operator<< ( QDebug d,
const QHostAddress & address )

Definition at line 1252 of file qhostaddress.cpp.

◆ parseIp6()

bool parseIp6 ( const QString & address,
QIPAddressUtils::IPv6Address & addr,
QString * scopeId )
static

Definition at line 105 of file qhostaddress.cpp.

◆ qHash()

size_t qHash ( const QHostAddress & key,
size_t seed )
noexcept
Since
5.0 \qhashold{QHostAddress}

Definition at line 1268 of file qhostaddress.cpp.