Skip to content

PythonQt.QtNetwork.QNetworkAddressEntry · declarations 001

Back to PythonQt.QtNetwork.QNetworkAddressEntry

broadcast

broadcast() -> Any

X.broadcast() -> PythonQt.QtNetwork.QHostAddress

Supplemental documentation: Qt 5 reference:

QHostAddress QNetworkAddressEntry::broadcast() const

Returns the broadcast address associated with the IPv4 address and netmask. It can usually be derived from those two by setting to 1 the bits of the IP address where the netmask contains a 0. (In other words, by bitwise-OR'ing the IP address with the inverse of the netmask)

This member is always empty for IPv6 addresses, since the concept of broadcast has been abandoned in that system in favor of multicast. In particular, the group of hosts corresponding to all the nodes in the local network can be reached by the "all-nodes" special multicast group (address FF02::1).

See also setBroadcast().

Upstream PySide2 reference signatures (binding differences may apply):

broadcast(self) -> PySide2.QtNetwork.QHostAddress

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#broadcast

ip

ip() -> Any

X.ip() -> PythonQt.QtNetwork.QHostAddress

Supplemental documentation: Qt 5 reference:

QHostAddress QNetworkAddressEntry::ip() const

This function returns one IPv4 or IPv6 address found, that was found in a network interface.

See also setIp().

Upstream PySide2 reference signatures (binding differences may apply):

ip(self) -> PySide2.QtNetwork.QHostAddress

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#ip

netmask

netmask() -> Any

X.netmask() -> PythonQt.QtNetwork.QHostAddress

Supplemental documentation: Qt 5 reference:

QHostAddress QNetworkAddressEntry::netmask() const

Returns the netmask associated with the IP address. The netmask is expressed in the form of an IP address, such as 255.255.0.0.

For IPv6 addresses, the prefix length is converted to an address where the number of bits set to 1 is equal to the prefix length. For a prefix length of 64 bits (the most common value), the netmask will be expressed as a QHostAddress holding the address FFFF:FFFF:FFFF:FFFF::

See also setNetmask() and prefixLength().

Upstream PySide2 reference signatures (binding differences may apply):

netmask(self) -> PySide2.QtNetwork.QHostAddress

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#netmask

prefixLength

prefixLength() -> int

X.prefixLength() -> int

Supplemental documentation: Qt 5 reference:

int QNetworkAddressEntry::prefixLength() const

Returns the prefix length of this IP address. The prefix length matches the number of bits set to 1 in the netmask (see netmask()). For IPv4 addresses, the value is between 0 and 32. For IPv6 addresses, it's contained between 0 and 128 and is the preferred form of representing addresses.

This function returns -1 if the prefix length could not be determined (i.e., netmask() returns a null QHostAddress()).

This function was introduced in Qt 4.5.

See also setPrefixLength() and netmask().

Upstream PySide2 reference signatures (binding differences may apply):

prefixLength(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#prefixLength

setBroadcast

setBroadcast(newBroadcast: Any) -> None

X.setBroadcast(newBroadcast)

Supplemental documentation: Qt 5 reference:

void QNetworkAddressEntry::setBroadcast(const QHostAddress \&newBroadcast)

Sets the broadcast IP address of this QNetworkAddressEntry object to newBroadcast.

See also broadcast().

Upstream PySide2 reference signatures (binding differences may apply):

setBroadcast(self, newBroadcast: PySide2.QtNetwork.QHostAddress) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#setBroadcast

setIp

setIp(newIp: Any) -> None

X.setIp(newIp)

Supplemental documentation: Qt 5 reference:

void QNetworkAddressEntry::setIp(const QHostAddress \&newIp)

Sets the IP address the QNetworkAddressEntry object contains to newIp.

See also ip().

Upstream PySide2 reference signatures (binding differences may apply):

setIp(self, newIp: PySide2.QtNetwork.QHostAddress) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#setIp

setNetmask

setNetmask(newNetmask: Any) -> None

X.setNetmask(newNetmask)

Supplemental documentation: Qt 5 reference:

void QNetworkAddressEntry::setNetmask(const QHostAddress \&newNetmask)

Sets the netmask that this QNetworkAddressEntry object contains to newNetmask. Setting the netmask also sets the prefix length to match the new netmask.

See also netmask() and setPrefixLength().

Upstream PySide2 reference signatures (binding differences may apply):

setNetmask(self, newNetmask: PySide2.QtNetwork.QHostAddress) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#setNetmask

setPrefixLength

setPrefixLength(length: int) -> None

X.setPrefixLength(length)

Supplemental documentation: Qt 5 reference:

void QNetworkAddressEntry::setPrefixLength(int length)

Sets the prefix length of this IP address to length. The value of length must be valid for this type of IP address: between 0 and 32 for IPv4 addresses, between 0 and 128 for IPv6 addresses. Setting to any invalid value is equivalent to setting to -1, which means "no prefix length".

Setting the prefix length also sets the netmask (see netmask()).

This function was introduced in Qt 4.5.

See also prefixLength() and setNetmask().

Upstream PySide2 reference signatures (binding differences may apply):

setPrefixLength(self, length: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#setPrefixLength

swap

swap(other: Any) -> None

X.swap(other)

Supplemental documentation: Qt 5 reference:

void QNetworkAddressEntry::swap(QNetworkAddressEntry \&other)

Swaps this network address entry instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

swap(self, other: PySide2.QtNetwork.QNetworkAddressEntry) -> None

Source: https://doc.qt.io/archives/qt-5.15/qnetworkaddressentry.html#swap