mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
QNetworkInterface documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3c0dd6b866
commit
9c47121084
2 changed files with 4 additions and 9 deletions
|
@ -169,8 +169,7 @@ QHostAddress QNetworkAddressEntry::broadcast() const
|
|||
Not all operating systems support reporting all features. Only the
|
||||
IPv4 addresses are guaranteed to be listed by this class in all
|
||||
platforms. In particular, IPv6 address listing is only supported
|
||||
on Windows XP and more recent versions, Linux, MacOS X and the
|
||||
BSDs.
|
||||
on Linux and the BSDs, hardware address only on Linux.
|
||||
|
||||
\sa QNetworkAddressEntry
|
||||
*/
|
||||
|
@ -277,12 +276,9 @@ QNetworkInterface::InterfaceFlags QNetworkInterface::flags() const
|
|||
}
|
||||
|
||||
/*!
|
||||
Returns the low-level hardware address for this interface. On
|
||||
Ethernet interfaces, this will be a MAC address in string
|
||||
representation, separated by colons.
|
||||
Returns the low-level hardware address for this interface.
|
||||
|
||||
Other interface types may have other types of hardware
|
||||
addresses. Implementations should not depend on this function
|
||||
Implementations should not depend on this function
|
||||
returning a valid MAC address.
|
||||
*/
|
||||
QString QNetworkInterface::hardwareAddress() const
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include "qalgorithms.h"
|
||||
#include "qnet_unix_p.h"
|
||||
#include "qplatformdefs.h"
|
||||
#include "qcorecommon_p.h"
|
||||
|
||||
#ifndef QT_NO_NETWORKINTERFACE
|
||||
|
||||
|
@ -56,7 +55,7 @@ QList<QNetworkInterfacePrivate *> QNetworkInterfacePrivate::scan()
|
|||
return interfaces;
|
||||
}
|
||||
|
||||
int socket = qt_safe_socket(AF_INET, SOCK_STREAM, IPPROTO_IP);
|
||||
const int socket = qt_safe_socket(AF_INET, SOCK_STREAM, IPPROTO_IP);
|
||||
struct ifaddrs *ifiter = nullptr;
|
||||
for (ifiter = iflist; ifiter; ifiter = ifiter->ifa_next) {
|
||||
QNetworkInterfacePrivate *iface = nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue