Bayonne2 / Common C++ 2 Framework
|
An RTP application, holding identifying RTCP SDES item values. More...
#include <sources.h>
Data Structures | |
struct | ParticipantLink |
class | ParticipantsIterator |
Iterator through the list of participants in this session. More... | |
Public Member Functions | |
RTPApplication (const std::string &cname) | |
Create a new RTP application. More... | |
~RTPApplication () | |
void | setSDESItem (SDESItemType item, const std::string &val) |
void | setPRIVPrefix (const std::string &val) |
const std::string & | getSDESItem (SDESItemType item) const |
const std::string & | getPRIVPrefix () const |
ParticipantsIterator | begin () |
ParticipantsIterator | end () |
const Participant * | getParticipant (const std::string &cname) const |
Private Member Functions | |
void | addParticipant (Participant &part) |
void | removeParticipant (ParticipantLink *part) |
void | findCNAME () |
Find out the local CNAME as user@host and store it as part of the internal state of this class. More... | |
const std::string & | getItem (SDESItemType type) const |
void | setItem (SDESItemType item, const std::string &val) |
Private Attributes | |
Participant ** | participants |
ParticipantLink * | firstPart |
List of participants, ordered from older to newer. More... | |
ParticipantLink * | lastPart |
Static Private Attributes | |
static const size_t | defaultParticipantsNum |
Hash table with sources of RTP and RTCP packets. More... | |
Friends | |
class | ApplicationHandler |
An RTP application, holding identifying RTCP SDES item values.
Represents local participants.
An application in the context of RTP: an entity that has a CNAME (unique identifier in the form of user@host.domain) as well as other RTCP SDES items (such as NAME or TOOL), and may open a number of RTP sessions. Each application is a different source of synchronization (with a potentially diferent SSRC identifier) in each RTP session it participates. All the sources of synchronization from a participant are tied together by means of the CNAME.
The definition of this class allows applications based on ccRTP to implement several "RTP applications" in the same process. Each object of this class represents a local participant.
RTPApplication::RTPApplication | ( | const std::string & | cname | ) |
Create a new RTP application.
If the CNAME string provided has zero length, it is guessed from the user and machine name.
cname | Local participant canonical name. |
RTPApplication::~RTPApplication | ( | ) |
|
private |
|
inline |
|
inline |
|
private |
Find out the local CNAME as user@host and store it as part of the internal state of this class.
|
inherited |
const Participant* RTPApplication::getParticipant | ( | const std::string & | cname | ) | const |
|
inline |
|
inline |
|
private |
|
inherited |
|
inline |
|
inline |
|
friend |
|
staticprivate |
|
private |
|
private |
|
private |