Torc  0.1
Classes | Functions | Variables
torcnetwork.cpp File Reference
#include "torclocalcontext.h"
#include "torclogging.h"
#include "torcadminthread.h"
#include "http/torchttprequest.h"
#include "torcnetwork.h"
#include "torccoreutils.h"
Include dependency graph for torcnetwork.cpp:

Go to the source code of this file.

Classes

class  TorcNetworkObject
 A static class used to create the TorcNetwork singleton in the admin thread. More...
 

Functions

QString ConfigurationTypeToString (QNetworkConfiguration::Type Type)
 

Variables

TorcNetworkgNetwork = nullptr
 
QMutex * gNetworkLock = new QMutex(QMutex::Recursive)
 
QStringList gNetworkHostNames
 
QReadWriteLock * gNetworkHostNamesLock = new QReadWriteLock()
 
QPair< QHostAddress, int > gIPv4LinkLocal = QHostAddress::parseSubnet(QStringLiteral("169.254.0.0/16"))
 
QPair< QHostAddress, int > gIPv4PrivateA = QHostAddress::parseSubnet(QStringLiteral("10.0.0.0/8"))
 
QPair< QHostAddress, int > gIPv4PrivateB = QHostAddress::parseSubnet(QStringLiteral("172.16.0.0/12"))
 
QPair< QHostAddress, int > gIPv4PrivateC = QHostAddress::parseSubnet(QStringLiteral("192.168.0.0/16"))
 
QPair< QHostAddress, int > gIPv6LinkLocal = QHostAddress::parseSubnet(QStringLiteral("fe80::/10"))
 
QPair< QHostAddress, int > gIPv6SiteLocal = QHostAddress::parseSubnet(QStringLiteral("fec0::/10"))
 
QPair< QHostAddress, int > gIPv6UniqueLocal = QHostAddress::parseSubnet(QStringLiteral("fc00::/7"))
 
QPair< QHostAddress, int > gIPv6Global = QHostAddress::parseSubnet(QStringLiteral("2000::/3"))
 
TorcNetworkObject TorcNetworkObject
 

Function Documentation

QString ConfigurationTypeToString ( QNetworkConfiguration::Type  Type)

Definition at line 295 of file torcnetwork.cpp.

Variable Documentation

QPair<QHostAddress,int> gIPv4LinkLocal = QHostAddress::parseSubnet(QStringLiteral("169.254.0.0/16"))

Definition at line 36 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv4PrivateA = QHostAddress::parseSubnet(QStringLiteral("10.0.0.0/8"))

Definition at line 37 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv4PrivateB = QHostAddress::parseSubnet(QStringLiteral("172.16.0.0/12"))

Definition at line 38 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv4PrivateC = QHostAddress::parseSubnet(QStringLiteral("192.168.0.0/16"))

Definition at line 39 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv6Global = QHostAddress::parseSubnet(QStringLiteral("2000::/3"))

Definition at line 44 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv6LinkLocal = QHostAddress::parseSubnet(QStringLiteral("fe80::/10"))

Definition at line 41 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv6SiteLocal = QHostAddress::parseSubnet(QStringLiteral("fec0::/10"))

Definition at line 42 of file torcnetwork.cpp.

QPair<QHostAddress,int> gIPv6UniqueLocal = QHostAddress::parseSubnet(QStringLiteral("fc00::/7"))

Definition at line 43 of file torcnetwork.cpp.

TorcNetwork* gNetwork = nullptr

Definition at line 31 of file torcnetwork.cpp.

QStringList gNetworkHostNames

Definition at line 33 of file torcnetwork.cpp.

QReadWriteLock* gNetworkHostNamesLock = new QReadWriteLock()

Definition at line 34 of file torcnetwork.cpp.

QMutex* gNetworkLock = new QMutex(QMutex::Recursive)

Definition at line 32 of file torcnetwork.cpp.

Definition at line 24 of file torcnetwork.h.