44 #ifndef CCXX_RTP_SOURCES_H_
45 #define CCXX_RTP_SOURCES_H_
50 #ifdef CCXX_NAMESPACES
73 inline const std::string&
153 inline const std::string&
258 {
return activeSender; }
272 {
return participant; }
275 {
return dataTransportPort; }
278 {
return controlTransportPort; }
281 {
return networkAddress; }
304 { activeSender = active; }
308 { participant = &p; }
311 { dataTransportPort = p; }
314 { controlTransportPort = p; }
317 { networkAddress = addr; }
396 inline const std::string&
422 {
return *(link->getParticipant()); }
425 {
return link->getParticipant(); }
428 link = link->getNext();
455 getParticipant(
const std::string& cname)
const;
463 participant(&p), next(l)
508 #ifdef CCXX_NAMESPACES
512 #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
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.
ptrdiff_t difference_type
ParticipantLink * getNext()
ParticipantsIterator begin()
unsigned short tpport_t
Transport Protocol Ports.
ParticipantLink * getPrev()
InetAddress networkAddress
Participant * getParticipant()
ParticipantsIterator(ParticipantLink *p=NULL)
const Participant & reference
Participant objects modification methods.
std::forward_iterator_tag iterator_category
const std::string & getItem(SDESItemType type) const
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)
ParticipantsIterator & operator++()