QtNetwork/qhostaddress.h Source File
Go to the documentation of this file.
42 #ifndef QHOSTADDRESS_H
43 #define QHOSTADDRESS_H
58 class QHostAddressPrivate;
95 void setAddress(
quint32 ip4Addr);
96 void setAddress(
quint8 *ip6Addr);
98 void setAddress(
const sockaddr *sockaddr);
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
Q_NETWORK_EXPORT QDataStream & operator>>(QDataStream &, QHostAddress &)
bool operator==(QHostAddress::SpecialAddress address1, const QHostAddress &address2)
#define QT_BEGIN_NAMESPACE
QScopedPointer< QHostAddressPrivate > d
bool operator!=(const QByteArray &a1, const QByteArray &a2)
Q_NETWORK_EXPORT QDebug operator<<(QDebug, const QHostAddress &)
Q_NETWORK_EXPORT uint qHash(const QHostAddress &key)