BrisaUpnp::BrisaSSDPServer Class Reference

SSDP stack implementation for UPnP devices. More...

#include <BrisaUpnp/BrisaSSDPServer>

List of all members.

Public Slots

bool isRunning ()
void start ()
void stop ()
void doNotify (const QString &usn, const QString &location, const QString &st, const QString &server, const QString &cacheControl)
void doByeBye (const QString &usn, const QString &st)
void respondMSearch (const QString &senderIp, quint16 senderPort, const QString &cacheControl, const QString &date, const QString &location, const QString &server, const QString &st, const QString &usn)

Signals

void msearchRequestReceived (const QString &st, const QString &senderIp, quint16 senderPort)

Public Member Functions

 BrisaSSDPServer (QObject *parent=0)
virtual ~BrisaSSDPServer ()

Detailed Description

SSDP stack implementation for UPnP devices.

Call start() to begin listening for MSearch requests from control points. Whenever a new msearch request is parsed by the BrisaSSDPServer, a msearchRequestReceived() signal is emmited containning all of the request information. You can connect this signal to some slot wich calls respondMSearch() and get a synchronous response to msearch requests.

BrisaSSDPServer also implements SSDP notify messages. Call doNotify() or doByeBye() when entering or leaving the multicast group.

Definition at line 52 of file brisassdpserver.h.


Constructor & Destructor Documentation

BrisaSSDPServer::BrisaSSDPServer ( QObject *  parent = 0  ) 

Constructs a BrisaSSDPServer with the given parent object.

Parameters:
parent parent

Definition at line 100 of file brisassdpserver.cpp.

BrisaSSDPServer::~BrisaSSDPServer (  )  [virtual]

Destroys the Object.

Stops the server if running.

Definition at line 111 of file brisassdpserver.cpp.


Member Function Documentation

void BrisaSSDPServer::doByeBye ( const QString &  usn,
const QString &  st 
) [slot]

Sends a UPnP notify byebye message to the multicast group with the given information.

Parameters:
usn empty
st empty
See also:
doNotify()

Definition at line 181 of file brisassdpserver.cpp.

void BrisaSSDPServer::doNotify ( const QString &  usn,
const QString &  location,
const QString &  st,
const QString &  server,
const QString &  cacheControl 
) [slot]

Sends a UPnP notify alive message to the multicast group with the given information.

Parameters:
usn empty
location empty
st empty
server empty
cacheControl empty
See also:
doByeBye()

Definition at line 162 of file brisassdpserver.cpp.

bool BrisaSSDPServer::isRunning (  )  [slot]

Checks if BrisaSSDPServer is running.

Returns:
true if is running

Definition at line 158 of file brisassdpserver.cpp.

void BrisaUpnp::BrisaSSDPServer::msearchRequestReceived ( const QString &  st,
const QString &  senderIp,
quint16  senderPort 
) [signal]

This signal is emmited when the BrisaSSDPServer receives a valid UPnP msearch request.

Parameters:
st empty
senderIp empty
senderPort empty
See also:
respondMSearch()

Definition at line 112 of file moc_brisassdpserver.cpp.

void BrisaSSDPServer::respondMSearch ( const QString &  senderIp,
quint16  senderPort,
const QString &  cacheControl,
const QString &  date,
const QString &  location,
const QString &  server,
const QString &  st,
const QString &  usn 
) [slot]

Sends a UPnP msearch response message to the given sender IP address and port.

Connect this slot to a proper signal to get synchronous response for msearch requests.

Parameters:
sender Ip empty
senderPort empty
cacheControl empty
date empty
location empty
server empty
st empty
usn empty
See also:
msearchRequestReceived()

Definition at line 235 of file brisassdpserver.cpp.

void BrisaSSDPServer::start (  )  [slot]

Joins the multicast group and starts listening for UPnP msearch responses.

See also:
stop()

Definition at line 118 of file brisassdpserver.cpp.

void BrisaSSDPServer::stop (  )  [slot]

Stops the BrisaSSDPServer.

See also:
start()

Definition at line 149 of file brisassdpserver.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 30 14:04:30 2010 for Brisa by  doxygen 1.6.3