Qt 4.8
Classes | Typedefs | Functions
qhostaddress.h File Reference
#include <QtCore/qpair.h>
#include <QtCore/qstring.h>
#include <QtCore/qscopedpointer.h>
#include <QtNetwork/qabstractsocket.h>

Go to the source code of this file.

Classes

class  QHostAddress
 The QHostAddress class provides an IP address. More...
 
class  QIPv6Address
 

Typedefs

typedef QIPv6Address Q_IPV6ADDR
 

Functions

Q_NETWORK_EXPORT QDebug operator<< (QDebug, const QHostAddress &)
 
Q_NETWORK_EXPORT QDataStreamoperator<< (QDataStream &, const QHostAddress &)
 
bool operator== (QHostAddress::SpecialAddress address1, const QHostAddress &address2)
 
Q_NETWORK_EXPORT QDataStreamoperator>> (QDataStream &, QHostAddress &)
 
Q_NETWORK_EXPORT uint qHash (const QHostAddress &key)
 

Typedef Documentation

◆ Q_IPV6ADDR

Definition at line 68 of file qhostaddress.h.

Function Documentation

◆ operator<<() [1/2]

Q_NETWORK_EXPORT QDebug operator<< ( QDebug  ,
const QHostAddress  
)

Definition at line 1152 of file qhostaddress.cpp.

Referenced by operator==().

1153 {
1154  d.maybeSpace() << "QHostAddress(" << address.toString() << ')';
1155  return d.space();
1156 }
double d
Definition: qnumeric_p.h:62

◆ operator<<() [2/2]

Q_NETWORK_EXPORT QDataStream& operator<< ( QDataStream ,
const QHostAddress  
)
related

◆ operator==()

bool operator== ( QHostAddress::SpecialAddress  address1,
const QHostAddress address2 
)
inline

Definition at line 137 of file qhostaddress.h.

Referenced by QHostAddress::operator!=().

138 { return address2 == address1; }

◆ operator>>()

Q_NETWORK_EXPORT QDataStream& operator>> ( QDataStream ,
QHostAddress  
)
related

Referenced by operator==().

◆ qHash()

Q_NETWORK_EXPORT uint qHash ( const QHostAddress key)

Definition at line 1159 of file qhostaddress.cpp.

Referenced by operator==(), and qHash().

1160 {
1161  return qHash(key.toString());
1162 }
QString toString() const
Returns the address as a string.
uint qHash(const QUrl &url)
Definition: qurl.h:285