44 #ifndef CCXX_RTP_SOURCES_H_
45 #define CCXX_RTP_SOURCES_H_
72 inline const std::string&
152 inline const std::string&
257 {
return activeSender; }
271 {
return participant; }
274 {
return dataTransportPort; }
277 {
return controlTransportPort; }
280 {
return networkAddress; }
303 { activeSender = active; }
307 { participant = &p; }
310 { dataTransportPort = p; }
313 { controlTransportPort = p; }
316 { networkAddress = addr; }
336 InetAddress networkAddress;
337 tpport_t dataTransportPort;
338 tpport_t controlTransportPort;
369 struct ParticipantLink;
395 inline const std::string&
421 {
return *(link->getParticipant()); }
424 {
return link->getParticipant(); }
427 link = link->getNext();
438 {
return l.link == r.link; }
442 {
return l.link != r.link; }
444 ParticipantLink *link;
454 getParticipant(
const std::string& cname)
const;
459 struct ParticipantLink {
461 ParticipantLink* l) :
462 participant(&p), next(l)
464 inline ~ParticipantLink() {
delete participant; }
465 inline Participant* getParticipant() {
return participant; }
466 inline ParticipantLink* getPrev() {
return prev; }
467 inline ParticipantLink* getNext() {
return next; }
468 inline void setPrev(ParticipantLink* l) { prev = l; }
469 inline void setNext(ParticipantLink* l) { next = l; }
471 ParticipantLink* next, *prev;
478 removeParticipant(ParticipantLink* part);
488 static const size_t defaultParticipantsNum;
491 ParticipantLink* firstPart, * lastPart;
509 #endif //CCXX_RTP_SOURCES_H_