SSDP Class Reference

#include <ssdp.h>

List of all members.


Detailed Description

Definition at line 59 of file ssdp.h.


Public Member Functions

 SSDP (int nServicePort)
 ~SSDP ()
virtual void run ()
void RequestTerminate (void)
void EnableNotifications ()
void DisableNotifications ()
void PerformSearch (const QString &sST)

Protected Member Functions

bool ProcessSearchRequest (const QStringMap &sHeaders, QHostAddress peerAddress, Q_UINT16 peerPort)
bool ProcessSearchResponse (const QStringMap &sHeaders)
bool ProcessNotify (const QStringMap &sHeaders)
bool IsTermRequested ()
QString GetHeaderValue (const QStringMap &headers, const QString &sKey, const QString &sDefault)
void ProcessData (QSocketDevice *pSocket)
SSDPRequestType ProcessRequestLine (const QString &sLine)

Private Attributes

QSocketDevice * m_Sockets [3]
int m_nPort
int m_nSearchPort
int m_nServicePort
UPnpNotifyTaskm_pNotifyTask
bool m_bTermRequested
QMutex m_lock

Constructor & Destructor Documentation

SSDP::SSDP ( int  nServicePort  ) 

Definition at line 38 of file ssdp.cpp.

SSDP::~SSDP (  ) 

Definition at line 66 of file ssdp.cpp.


Member Function Documentation

bool SSDP::ProcessSearchRequest ( const QStringMap sHeaders,
QHostAddress  peerAddress,
Q_UINT16  peerPort 
) [protected]

Definition at line 343 of file ssdp.cpp.

Referenced by ProcessData().

bool SSDP::ProcessSearchResponse ( const QStringMap sHeaders  )  [protected]

Definition at line 431 of file ssdp.cpp.

Referenced by ProcessData().

bool SSDP::ProcessNotify ( const QStringMap sHeaders  )  [protected]

Definition at line 467 of file ssdp.cpp.

Referenced by ProcessData().

bool SSDP::IsTermRequested (  )  [protected]

QString SSDP::GetHeaderValue ( const QStringMap headers,
const QString &  sKey,
const QString &  sDefault 
) [protected]

Definition at line 329 of file ssdp.cpp.

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

void SSDP::ProcessData ( QSocketDevice *  pSocket  )  [protected]

Definition at line 229 of file ssdp.cpp.

Referenced by run().

SSDPRequestType SSDP::ProcessRequestLine ( const QString &  sLine  )  [protected]

Definition at line 300 of file ssdp.cpp.

Referenced by ProcessData().

void SSDP::run ( void   )  [virtual]

Definition at line 171 of file ssdp.cpp.

void SSDP::RequestTerminate ( void   ) 

void SSDP::EnableNotifications (  ) 

Definition at line 89 of file ssdp.cpp.

Referenced by UPnp::Start().

void SSDP::DisableNotifications (  ) 

Definition at line 125 of file ssdp.cpp.

Referenced by ~SSDP().

void SSDP::PerformSearch ( const QString &  sST  ) 

Definition at line 140 of file ssdp.cpp.

Referenced by UPnp::PerformSearch().


Member Data Documentation

QSocketDevice* SSDP::m_Sockets[3] [private]

Definition at line 63 of file ssdp.h.

Referenced by PerformSearch(), run(), SSDP(), and ~SSDP().

int SSDP::m_nPort [private]

Definition at line 65 of file ssdp.h.

Referenced by SSDP().

int SSDP::m_nSearchPort [private]

Definition at line 66 of file ssdp.h.

Referenced by SSDP().

int SSDP::m_nServicePort [private]

Definition at line 67 of file ssdp.h.

Referenced by EnableNotifications(), ProcessSearchRequest(), and SSDP().

Definition at line 69 of file ssdp.h.

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

Definition at line 71 of file ssdp.h.

Referenced by run(), and ~SSDP().

QMutex SSDP::m_lock [private]

Definition at line 72 of file ssdp.h.


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

Generated on Sat Dec 18 05:16:11 2010 for MythTV by  doxygen 1.5.5