ccRTP
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members

Synchronization source in an RTP session. More...

#include <sources.h>

Public Types

enum  State {
  stateUnknown, statePrevalid, stateActive, stateInactive,
  stateLeaving
}
 Synchronization source states during an RTP session. More...
 

Public Member Functions

 SyncSource (uint32 ssrc)
 
 ~SyncSource ()
 
State getState () const
 
bool isSender () const
 Whether this source sends RTP data packets. More...
 
uint32 getID () const
 
ParticipantgetParticipant () const
 Get the participant this synchronization source is asociated to. More...
 
tpport_t getDataTransportPort () const
 
tpport_t getControlTransportPort () const
 
const InetAddress & getNetworkAddress () const
 

Protected Member Functions

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

Friends

class SyncSourceHandler
 

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
Examples:
ccrtptest.cpp, and rtplisten.cpp.

Constructor & Destructor Documentation

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

Member Function Documentation

tpport_t SyncSource::getControlTransportPort ( ) const
inline
Examples:
ccrtptest.cpp, and rtplisten.cpp.
tpport_t SyncSource::getDataTransportPort ( ) const
inline
Examples:
ccrtptest.cpp, and rtplisten.cpp.
uint32 SyncSource::getID ( ) const
inline
Examples:
ccrtptest.cpp, and rtplisten.cpp.
const InetAddress& SyncSource::getNetworkAddress ( ) const
inline
Examples:
ccrtptest.cpp, and rtplisten.cpp.
Participant* SyncSource::getParticipant ( ) const
inline

Get the participant this synchronization source is asociated to.

Return values
NULLif the stack has not been yet able to identify the participant this source is associated to.
Examples:
ccrtptest.cpp, and rtplisten.cpp.
State SyncSource::getState ( ) const
inline
bool SyncSource::isSender ( ) const
inline

Whether this source sends RTP data packets.

Examples:
ccrtptest.cpp.
SyncSource& SyncSource::operator= ( const SyncSource source)
protected

Friends And Related Function Documentation

friend class SyncSourceHandler
friend

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