Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QNetmask Class Reference

#include <qhostaddress_p.h>

+ Collaboration diagram for QNetmask:

Public Member Functions

constexpr QNetmask ()
 
bool setAddress (const QHostAddress &address)
 
QHostAddress address (QAbstractSocket::NetworkLayerProtocol protocol) const
 
int prefixLength () const
 
void setPrefixLength (QAbstractSocket::NetworkLayerProtocol proto, int len)
 

Friends

bool operator== (QNetmask n1, QNetmask n2)
 

Detailed Description

Definition at line 40 of file qhostaddress_p.h.

Constructor & Destructor Documentation

◆ QNetmask()

constexpr QNetmask::QNetmask ( )
inlineconstexpr

Definition at line 45 of file qhostaddress_p.h.

Member Function Documentation

◆ address()

QHostAddress QNetmask::address ( QAbstractSocket::NetworkLayerProtocol  protocol) const

Definition at line 302 of file qhostaddress.cpp.

References QHostAddress::AnyIPProtocol, clearBits(), QHostAddress::IPv4Protocol, and QHostAddress::UnknownNetworkLayerProtocol.

+ Here is the call graph for this function:

◆ prefixLength()

int QNetmask::prefixLength ( ) const
inline

Definition at line 50 of file qhostaddress_p.h.

Referenced by QHostAddress::parseSubnet().

+ Here is the caller graph for this function:

◆ setAddress()

bool QNetmask::setAddress ( const QHostAddress address)

Definition at line 220 of file qhostaddress.cpp.

References QHostAddress::IPv4Protocol, QHostAddress::IPv6Protocol, ptr(), Q_FALLTHROUGH, and qToBigEndian().

Referenced by QHostAddress::parseSubnet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPrefixLength()

void QNetmask::setPrefixLength ( QAbstractSocket::NetworkLayerProtocol  proto,
int  len 
)
inline

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( QNetmask  n1,
QNetmask  n2 
)
friend

Definition at line 64 of file qhostaddress_p.h.


The documentation for this class was generated from the following files: