MythTV master
Functions | Variables
ssdp.cpp File Reference
#include "ssdp.h"
#include <algorithm>
#include <chrono>
#include <thread>
#include <QByteArray>
#include <QHostAddress>
#include <QMap>
#include <QMutex>
#include <QMutexLocker>
#include <QNetworkDatagram>
#include <QRegularExpression>
#include <QString>
#include <QStringList>
#include <QUdpSocket>
#include "libmythbase/configuration.h"
#include "libmythbase/mythchrono.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythrandom.h"
#include "ssdpcache.h"
#include "taskqueue.h"
#include "upnp.h"
#include "upnptasknotify.h"
#include "upnptasksearch.h"
Include dependency graph for ssdp.cpp:

Go to the source code of this file.

Functions

static SSDPRequestType ProcessRequestLine (const QString &sLine)
 
static QString GetHeaderValue (const QMap< QString, QString > &headers, const QString &sKey, const QString &sDefault)
 
static bool ProcessSearchRequest (const QMap< QString, QString > &sHeaders, const QHostAddress &peerAddress, quint16 peerPort, int servicePort)
 
static bool ProcessSearchResponse (const QMap< QString, QString > &headers)
 
static bool ProcessNotify (const QMap< QString, QString > &headers)
 

Variables

static QMutex g_pSSDPCreationLock
 

Function Documentation

◆ GetHeaderValue()

static QString GetHeaderValue ( const QMap< QString, QString > &  headers,
const QString &  sKey,
const QString &  sDefault 
)
static

Definition at line 212 of file ssdp.cpp.

Referenced by ProcessNotify(), ProcessSearchRequest(), and ProcessSearchResponse().

◆ ProcessNotify()

static bool ProcessNotify ( const QMap< QString, QString > &  headers)
static

Definition at line 345 of file ssdp.cpp.

Referenced by SSDPReceiver::processPendingDatagrams().

◆ ProcessRequestLine()

static SSDPRequestType ProcessRequestLine ( const QString &  sLine)
static

Definition at line 188 of file ssdp.cpp.

Referenced by SSDPReceiver::processPendingDatagrams().

◆ ProcessSearchRequest()

static bool ProcessSearchRequest ( const QMap< QString, QString > &  sHeaders,
const QHostAddress &  peerAddress,
quint16  peerPort,
int  servicePort 
)
static

Definition at line 223 of file ssdp.cpp.

Referenced by SSDPReceiver::processPendingDatagrams().

◆ ProcessSearchResponse()

static bool ProcessSearchResponse ( const QMap< QString, QString > &  headers)
static

Definition at line 314 of file ssdp.cpp.

Referenced by SSDPReceiver::processPendingDatagrams().

Variable Documentation

◆ g_pSSDPCreationLock

QMutex g_pSSDPCreationLock
static

Definition at line 50 of file ssdp.cpp.

Referenced by SSDP::Instance(), and SSDP::Shutdown().