MythTV  master
Classes | Macros | Variables
serverpool.cpp File Reference
#include <QNetworkAddressEntry>
#include <QReadWriteLock>
#include <QWriteLocker>
#include <QReadLocker>
#include <QTcpSocket>
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "serverpool.h"
Include dependency graph for serverpool.cpp:

Go to the source code of this file.

Classes

class  PrivUdpSocket
 

Macros

#define PRETTYIP(x)
 
#define PRETTYIP_(x)
 
#define LOC   QString("ServerPool: ")
 

Variables

static QList< QNetworkAddressEntry > naList_4
 
static QList< QNetworkAddressEntry > naList_6
 
static QReadWriteLock naLock
 
static QPair< QHostAddress, int > kLinkLocal
 
static QPair< QHostAddress, int > kLinkLocal6
 

Macro Definition Documentation

◆ PRETTYIP

#define PRETTYIP (   x)
Value:
((x)->protocol() == QAbstractSocket::IPv6Protocol ? \
"[" + (x)->toString().toLower() + "]" : \
(x)->toString().toLower())
QString toString(MarkTypes type)

Definition at line 11 of file serverpool.cpp.

◆ PRETTYIP_

#define PRETTYIP_ (   x)
Value:
((x).protocol() == QAbstractSocket::IPv6Protocol ? \
"[" + (x).toString().toLower() + "]" : \
(x).toString().toLower())
QString toString(MarkTypes type)

Definition at line 14 of file serverpool.cpp.

◆ LOC

#define LOC   QString("ServerPool: ")

Definition at line 18 of file serverpool.cpp.

Variable Documentation

◆ naList_4

QList<QNetworkAddressEntry> naList_4
static

◆ naList_6

QList<QNetworkAddressEntry> naList_6
static

◆ naLock

QReadWriteLock naLock
static

◆ kLinkLocal

QPair<QHostAddress, int> kLinkLocal
static
Initial value:
=
QHostAddress::parseSubnet("169.254.0.0/16")

Definition at line 24 of file serverpool.cpp.

Referenced by ServerPool::SelectDefaultListen().

◆ kLinkLocal6

QPair<QHostAddress, int> kLinkLocal6
static
Initial value:
=
QHostAddress::parseSubnet("fe80::/10")

Definition at line 26 of file serverpool.cpp.

Referenced by PrivUdpSocket::contains(), and ServerPool::SelectDefaultListen().