Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QNetworkInterfaceManager Class Reference

#include <qnetworkinterface_p.h>

+ Collaboration diagram for QNetworkInterfaceManager:

Public Member Functions

 QNetworkInterfaceManager ()
 
 ~QNetworkInterfaceManager ()
 
QSharedDataPointer< QNetworkInterfacePrivateinterfaceFromName (const QString &name)
 
QSharedDataPointer< QNetworkInterfacePrivateinterfaceFromIndex (int index)
 
QList< QSharedDataPointer< QNetworkInterfacePrivate > > allInterfaces ()
 

Static Public Member Functions

static uint interfaceIndexFromName (const QString &name)
 
static QString interfaceNameFromIndex (uint index)
 

Public Attributes

QSharedDataPointer< QNetworkInterfacePrivateempty
 

Detailed Description

Definition at line 87 of file qnetworkinterface_p.h.

Constructor & Destructor Documentation

◆ QNetworkInterfaceManager()

QNetworkInterfaceManager::QNetworkInterfaceManager ( )

Definition at line 50 of file qnetworkinterface.cpp.

◆ ~QNetworkInterfaceManager()

QNetworkInterfaceManager::~QNetworkInterfaceManager ( )

Definition at line 54 of file qnetworkinterface.cpp.

Member Function Documentation

◆ allInterfaces()

QList< QSharedDataPointer< QNetworkInterfacePrivate > > QNetworkInterfaceManager::allInterfaces ( )

Definition at line 86 of file qnetworkinterface.cpp.

References QNetworkAddressEntry::DnsIneligible, QNetworkInterface::IsUp, list, postProcess(), ptr(), and QList< T >::size().

Referenced by interfaceFromIndex(), and interfaceFromName().

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

◆ interfaceFromIndex()

QSharedDataPointer< QNetworkInterfacePrivate > QNetworkInterfaceManager::interfaceFromIndex ( int index)

Definition at line 75 of file qnetworkinterface.cpp.

References allInterfaces(), empty, and interface.

+ Here is the call graph for this function:

◆ interfaceFromName()

QSharedDataPointer< QNetworkInterfacePrivate > QNetworkInterfaceManager::interfaceFromName ( const QString & name)

Definition at line 58 of file qnetworkinterface.cpp.

References allInterfaces(), empty, interface, and ok.

+ Here is the call graph for this function:

◆ interfaceIndexFromName()

uint QNetworkInterfaceManager::interfaceIndexFromName ( const QString & name)
static

Definition at line 189 of file qnetworkinterface_linux.cpp.

References qt_safe_close(), qt_safe_ioctl(), qt_safe_socket(), and socket.

Referenced by QNetworkInterface::interfaceIndexFromName().

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

◆ interfaceNameFromIndex()

QString QNetworkInterfaceManager::interfaceNameFromIndex ( uint index)
static

Definition at line 208 of file qnetworkinterface_linux.cpp.

References QString::fromLatin1(), qt_safe_close(), qt_safe_ioctl(), qt_safe_socket(), and socket.

Referenced by addressFromSockaddr(), addressFromSockaddr(), and QNetworkInterface::interfaceNameFromIndex().

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

Member Data Documentation

◆ empty

QSharedDataPointer<QNetworkInterfacePrivate> QNetworkInterfaceManager::empty

Definition at line 101 of file qnetworkinterface_p.h.

Referenced by interfaceFromIndex(), and interfaceFromName().


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