Bayonne2 / Common C++ 2 Framework
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
SyncSource Class Reference
Participants and synchronization sources.

Synchronization source in an RTP session. More...

#include <sources.h>

Collaboration diagram for SyncSource:
Collaboration graph
[legend]

Public Types

  Synchronization source states during an RTP session. More...
 

Public Member Functions

  SyncSource (uint32 ssrc)
 
 
State  getState () const
 
bool  isSender () const
  Whether this source sends RTP data packets. More...
 
uint32  getID () const
 
  Get the participant this synchronization source is asociated to. More...
 
 
 
const InetAddressgetNetworkAddress () const
 

Protected Member Functions

  SyncSource (const SyncSource &source)
 
SyncSourceoperator= (const SyncSource &source)
 

Private Member Functions

void  setState (State st)
 
void  setSender (bool active)
  Mark this source as an active sender. More...
 
 
 
 
 
void  setLink (void *l)
 
void *  getLink () const
 

Private Attributes

 
uint32  SSRC
 
bool  activeSender
 
 
 
 
 
void *  link
 

Friends

 

Detailed Description

Synchronization source in an RTP session.

Each synchronization source in an RTP session is identified by a 32-bit numeric SSRC identifier. Each SyncSource object is related to a Participant object, which can be retrieved through the getParticipant() method.

Author
Federico Montesino Pouzols fedem.nosp@m.p@al.nosp@m.tern..nosp@m.org

Definition at line 195 of file sources.h.

Member Enumeration Documentation

Synchronization source states during an RTP session.

In general, new synchronization sources are not considered valid until multiple valid data packets or a valid RTCP compound packet has been received from the new source (

See Also
IncomingDataQueue::setMinValidPacketSequence()). Thus, the source will probably be in statePrevalid before reaching one of the two states that indicate a valid source: stateActive and stateInactive.

A valid participant is in stateActive state if RTP and/or RTCP packets are currently being received from it. If, after a small number of RTCP report intervals (see IncomingDataQueue::setSourceExpirationPeriod() ), no packets are received, it will reach the stateInactive state. If, after a small number of RTCP report intervals, no packet is received from an inactive source, it will be deleted.

If RTCP is being used, after receiving a BYE RTCP packet from a synchronization source, it will reach the stateLeaving state and will be deleted after a delay (see QueueRTCPManager::setLeavingDelay()).

Sources in statePrevalid and stateLeaving are not counted for the number of session members estimation.

Enumerator
stateUnknown 

No valid packet has been received.

statePrevalid 

Some packets have been received, but source validity not yet guaranteed.

stateActive 

We currently receive packets (data or control) from this source.

stateInactive 

Was active in the near past but no packet from this source has been received lately.

stateLeaving 

An RTCP BYE has been received from the source.

Definition at line 228 of file sources.h.

Constructor & Destructor Documentation

SyncSource::SyncSource ( uint32  ssrc )
Parameters
ssrc SSRC identifier of the source, unique in each session.
SyncSource::~SyncSource ( )
SyncSource::SyncSource ( const SyncSourcesource )
protected
Parameters
source The RTPSource object being copied

Member Function Documentation

tpport_t SyncSource::getControlTransportPort ( ) const
inline

Definition at line 277 of file sources.h.

tpport_t SyncSource::getDataTransportPort ( ) const
inline

Definition at line 274 of file sources.h.

uint32 SyncSource::getID ( ) const
inline

Definition at line 260 of file sources.h.

void* SyncSource::getLink ( ) const
inlineprivate

Definition at line 323 of file sources.h.

const InetAddress& SyncSource::getNetworkAddress ( ) const
inline

Definition at line 280 of file sources.h.

Participant* SyncSource::getParticipant ( ) const
inline

Get the participant this synchronization source is asociated to.

Return values
NULL if the stack has not been yet able to identify the participant this source is associated to.

Definition at line 271 of file sources.h.

State SyncSource::getState ( ) const
inline

Definition at line 251 of file sources.h.

bool SyncSource::isSender ( ) const
inline

Whether this source sends RTP data packets.

Definition at line 257 of file sources.h.

SyncSource& SyncSource::operator= ( const SyncSourcesource )
protected
void SyncSource::setControlTransportPort ( tpport_t  p )
inlineprivate

Definition at line 313 of file sources.h.

void SyncSource::setDataTransportPort ( tpport_t  p )
inlineprivate

Definition at line 310 of file sources.h.

void SyncSource::setLink ( void *  l )
inlineprivate

Definition at line 320 of file sources.h.

void SyncSource::setNetworkAddress ( InetAddress  addr )
inlineprivate

Definition at line 316 of file sources.h.

void SyncSource::setParticipant ( Participantp )
inlineprivate

Definition at line 307 of file sources.h.

void SyncSource::setSender ( bool  active )
inlineprivate

Mark this source as an active sender.

Definition at line 303 of file sources.h.

void SyncSource::setState ( State  st )
inlineprivate

Definition at line 296 of file sources.h.

Friends And Related Function Documentation

friend class SyncSourceHandler
friend

Definition at line 293 of file sources.h.

Field Documentation

bool SyncSource::activeSender
private

Definition at line 331 of file sources.h.

tpport_t SyncSource::controlTransportPort
private

Definition at line 339 of file sources.h.

tpport_t SyncSource::dataTransportPort
private

Definition at line 338 of file sources.h.

void* SyncSource::link
private

Definition at line 344 of file sources.h.

InetAddress SyncSource::networkAddress
private

Definition at line 337 of file sources.h.

Participant* SyncSource::participant
private

Definition at line 333 of file sources.h.

uint32 SyncSource::SSRC
private

Definition at line 329 of file sources.h.

State SyncSource::state
private

Definition at line 327 of file sources.h.


The documentation for this class was generated from the following file:

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /