43 #ifndef CCXX_RTP_SOURCES_H_
44 #define CCXX_RTP_SOURCES_H_
70 inline const std::string&
150 inline const std::string&
255 {
return activeSender; }
269 {
return participant; }
272 {
return dataTransportPort; }
275 {
return controlTransportPort; }
278 {
return networkAddress; }
301 { activeSender = active; }
305 { participant = &p; }
308 { dataTransportPort = p; }
311 { controlTransportPort = p; }
314 { networkAddress = addr; }
393 inline const std::string&
419 {
return *(link->getParticipant()); }
422 {
return link->getParticipant(); }
425 link = link->getNext();
452 getParticipant(
const std::string& cname)
const;
460 participant(&p), next(l)
507 #endif //CCXX_RTP_SOURCES_H_
const Participant * pointer
friend bool operator!=(const ParticipantsIterator &l, const ParticipantsIterator &r)
void setPrev(ParticipantLink *l)
void setPRIVPrefix(const std::string &val)
ParticipantLink * lastPart
const std::string & getPRIVPrefix() const
const std::string & getItem(SDESItemType type) const
tpport_t getDataTransportPort() const
An RTP application, holding identifying RTCP SDES item values.
Synchronization source in an RTP session.
void setParticipant(Participant &p)
ParticipantsIterator operator++(int)
Participant * participant
void setControlTransportPort(tpport_t p)
No valid packet has been received.
ParticipantLink * getNext()
ParticipantsIterator begin()
ParticipantLink * getPrev()
InetAddress networkAddress
Participant * getParticipant()
ParticipantsIterator(ParticipantLink *p=NULL)
const Participant & reference
Participant objects modification methods.
std::forward_iterator_tag iterator_category
State
Synchronization source states during an RTP session.
Application objects modification methods.
A class of objects representing remote participants (RTP applications) in a multimedia session...
void setItem(SDESItemType item, const std::string &val)
ParticipantsIterator end()
tpport_t controlTransportPort
ParticipantsIterator(const ParticipantsIterator &pi)
virtual ~SDESItemsHolder()
Participant * getParticipant() const
Get the participant this synchronization source is asociated to.
void setSDESItem(SDESItemType item, const std::string &val)
reference operator*() const
const InetAddress & getNetworkAddress() const
Iterator through the list of participants in this session.
void setSender(bool active)
Mark this source as an active sender.
ParticipantLink(Participant &p, ParticipantLink *l)
tpport_t getControlTransportPort() const
bool isSender() const
Whether this source sends RTP data packets.
Holds the SDES items and related information from a participant in an RTP application.
const std::string & getPRIVPrefix() const
friend bool operator==(const ParticipantsIterator &l, const ParticipantsIterator &r)
tpport_t dataTransportPort
void setPRIVPrefix(const std::string &val)
Participant * participant
static const size_t defaultParticipantsNum
Hash table with sources of RTP and RTCP packets.
Participant ** participants
void setDataTransportPort(tpport_t p)
const std::string & getSDESItem(SDESItemType item) const
SyncSource objects modification methods.
pointer operator->() const
__EXPORT RTPApplication & defaultApplication()
Get the RTPApplication object for the "default" application (the only one used by common applications...
void setPRIVPrefix(const std::string val)
Set prefix value for the PRIV SDES item.
void setNext(ParticipantLink *l)
const std::string & getPRIVPrefix() const
Get the prefix value for the PRIV SDES item.
SDESItemType
SDES items that may be carried in a Source DEScription RTCP packet.
const std::string & getSDESItem(SDESItemType type) const
Get the value of an SDES item.
void setSDESItem(SDESItemType item, const std::string &val)
Set the value of a SDES item.
void setNetworkAddress(InetAddress addr)
std::ptrdiff_t difference_type
ParticipantsIterator & operator++()