42 #ifndef QHOSTADDRESS_H 43 #define QHOSTADDRESS_H 45 #include <QtCore/qpair.h> 46 #include <QtCore/qstring.h> 47 #include <QtCore/qscopedpointer.h> 48 #include <QtNetwork/qabstractsocket.h> 95 void setAddress(
quint32 ip4Addr);
96 void setAddress(
quint8 *ip6Addr);
98 void setAddress(
const sockaddr *sockaddr);
99 bool setAddress(
const QString &address);
108 void setScopeId(
const QString &
id);
120 inline QT3_SUPPORT
quint32 ip4Addr()
const {
return toIPv4Address(); }
128 bool isInSubnet(
const QHostAddress &subnet,
int netmask)
const;
138 {
return address2 == address1; }
140 #ifndef QT_NO_DEBUG_STREAM 147 #ifndef QT_NO_DATASTREAM 155 #endif // QHOSTADDRESS_H The QDebug class provides an output stream for debugging information.
#define QT_END_NAMESPACE
This macro expands to.
Q_NETWORK_EXPORT QDataStream & operator>>(QDataStream &, QHostAddress &)
QScopedPointer< QHostAddressPrivate > d
static void clear(QVariant::Private *d)
bool operator!=(QBool b1, bool b2)
NetworkLayerProtocol
This enum describes the network layer protocol values used in Qt.
The QString class provides a Unicode character string.
bool operator==(QHostAddress::SpecialAddress address1, const QHostAddress &address2)
static QString toString(Register *reg, int type, bool *ok=0)
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_NETWORK_EXPORT QDebug operator<<(QDebug, const QHostAddress &)
The QDataStream class provides serialization of binary data to a QIODevice.
The QHostAddress class provides an IP address.
Q_NETWORK_EXPORT uint qHash(const QHostAddress &key)
static bool isNull(const QVariant::Private *d)