MythTV master
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SSDP Class Reference

#include <libmythupnp/ssdp.h>

Collaboration diagram for SSDP:
[legend]

Public Member Functions

 ~SSDP ()
 
void PerformSearch (const QString &sST, std::chrono::seconds timeout=2s)
 Send a SSDP discover multicast datagram. More...
 
void EnableNotifications (int nServicePort)
 
void DisableNotifications ()
 
int getNotificationPort () const
 

Static Public Member Functions

static SSDPInstance ()
 
static void Shutdown ()
 

Static Public Attributes

static const QString kBackendURI = "urn:schemas-mythtv-org:device:MasterMediaServer:1"
 

Private Member Functions

 SSDP ()
 

Private Attributes

int m_nServicePort {0}
 
class UPnpNotifyTaskm_pNotifyTask {nullptr}
 
SSDPReceiver m_receiver
 

Static Private Attributes

static SSDPg_pSSDP = nullptr
 

Detailed Description

Definition at line 55 of file ssdp.h.

Constructor & Destructor Documentation

◆ SSDP()

SSDP::SSDP ( )
private

Definition at line 78 of file ssdp.cpp.

Referenced by Instance().

◆ ~SSDP()

SSDP::~SSDP ( )

Definition at line 87 of file ssdp.cpp.

Member Function Documentation

◆ DisableNotifications()

void SSDP::DisableNotifications ( )

Definition at line 143 of file ssdp.cpp.

Referenced by UPnp::CleanUp(), UPnp::DisableNotifications(), and ~SSDP().

◆ EnableNotifications()

void SSDP::EnableNotifications ( int  nServicePort)

Definition at line 105 of file ssdp.cpp.

Referenced by UPnp::EnableNotificatins(), and UPnp::Start().

◆ getNotificationPort()

int SSDP::getNotificationPort ( ) const
inline

Definition at line 90 of file ssdp.h.

Referenced by SSDPReceiver::processPendingDatagrams().

◆ Instance()

SSDP * SSDP::Instance ( )
static

◆ PerformSearch()

void SSDP::PerformSearch ( const QString &  sST,
std::chrono::seconds  timeout = 2s 
)

◆ Shutdown()

void SSDP::Shutdown ( void  )
static

Definition at line 67 of file ssdp.cpp.

Referenced by MythContext::~MythContext().

Member Data Documentation

◆ g_pSSDP

SSDP * SSDP::g_pSSDP = nullptr
staticprivate

Definition at line 59 of file ssdp.h.

Referenced by Instance(), and Shutdown().

◆ kBackendURI

const QString SSDP::kBackendURI = "urn:schemas-mythtv-org:device:MasterMediaServer:1"
inlinestatic

◆ m_nServicePort

int SSDP::m_nServicePort {0}
private

Definition at line 61 of file ssdp.h.

Referenced by EnableNotifications().

◆ m_pNotifyTask

class UPnpNotifyTask* SSDP::m_pNotifyTask {nullptr}
private

Definition at line 63 of file ssdp.h.

Referenced by DisableNotifications(), EnableNotifications(), and ~SSDP().

◆ m_receiver

SSDPReceiver SSDP::m_receiver
private

Definition at line 65 of file ssdp.h.

Referenced by PerformSearch().


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