QHostAddress

#include <QtNetwork/QHostAddress>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QHostAddress


Overview

Public Types Index

Protected Attributes Index

QScopedPointer< QHostAddressPrivate >d

Public Functions Index

QHostAddress ()
QHostAddress (quint32 ip4Addr)
QHostAddress (quint8 *ip6Addr)
QHostAddress (const Q_IPV6ADDR &ip6Addr)
QHostAddress (const sockaddr *sockaddr)
QHostAddress (const QString &address)
QHostAddress (const QHostAddress &copy)
QHostAddress (SpecialAddress address)
~QHostAddress ()
voidclear ()
boolisInSubnet (const QHostAddress &subnet, int netmask) const
boolisInSubnet (const QPair< QHostAddress, int > &subnet) const
boolisNull () const
booloperator!= (const QHostAddress &address) const
booloperator!= (SpecialAddress address) const
QHostAddress &operator= (const QHostAddress &other)
QHostAddress &operator= (const QString &address)
booloperator== (const QHostAddress &address) const
booloperator== (SpecialAddress address) const
QAbstractSocket::NetworkLayerProtocolprotocol () const
QStringscopeId () const
voidsetAddress (quint32 ip4Addr)
voidsetAddress (quint8 *ip6Addr)
voidsetAddress (const Q_IPV6ADDR &ip6Addr)
voidsetAddress (const sockaddr *sockaddr)
boolsetAddress (const QString &address)
voidsetScopeId (const QString &id)
quint32toIPv4Address () const
Q_IPV6ADDRtoIPv6Address () const
QStringtoString () const

Static Public Functions Index

QPair< QHostAddress, int >parseSubnet (const QString &subnet)

Public Types

SpecialAddress

Null
Broadcast
LocalHost
LocalHostIPv6
Any
AnyIPv6

Protected Attributes

QScopedPointer< QHostAddressPrivate > d ()

Public Functions

QHostAddress ()

QHostAddress (
  • quint32ip4Addr)

QHostAddress (
  • quint8 *ip6Addr)

QHostAddress (

QHostAddress (
  • const sockaddr *sockaddr)

QHostAddress (

QHostAddress (

QHostAddress (
  • SpecialAddressaddress)

~QHostAddress ()

Destructor.

void clear ()

bool isInSubnet (

bool isInSubnet (

bool isNull ()

bool operator!= (

bool operator!= (
  • SpecialAddressaddress)

QHostAddress & operator= (

QHostAddress & operator= (

bool operator== (

bool operator== (
  • SpecialAddressaddress)

QAbstractSocket::NetworkLayerProtocol protocol ()

QString scopeId ()

void setAddress (
  • quint32ip4Addr)

void setAddress (
  • quint8 *ip6Addr)

void setAddress (

void setAddress (
  • const sockaddr *sockaddr)

bool setAddress (

void setScopeId (

quint32 toIPv4Address ()

Q_IPV6ADDR toIPv6Address ()

QString toString ()

Static Public Functions

QPair< QHostAddress, int > parseSubnet (

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus