#include <sources.h>
Public Types | |
| 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. | |
| 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. | |
| uint32 | getID () const |
| Participant * | getParticipant () const |
| Get the participant this synchronization source is asociated to. | |
| tpport_t | getDataTransportPort () const |
| tpport_t | getControlTransportPort () const |
| const InetAddress & | getNetworkAddress () const |
Protected Member Functions | |
| SyncSource (const SyncSource &source) | |
| SyncSource & | operator= (const SyncSource &source) |
Friends | |
| class | SyncSourceHandler |
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.
ccrtptest.cpp, and rtplisten.cpp.
| enum SyncSource::State |
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 (
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.
| SyncSource::SyncSource | ( | uint32 | ssrc | ) |
| ssrc | SSRC identifier of the source, unique in each session. |
| SyncSource::~SyncSource | ( | ) |
| SyncSource::SyncSource | ( | const SyncSource & | source | ) | [protected] |
| source | The RTPSource object being copied |
| tpport_t SyncSource::getControlTransportPort | ( | ) | const [inline] |
| tpport_t SyncSource::getDataTransportPort | ( | ) | const [inline] |
| uint32 SyncSource::getID | ( | ) | const [inline] |
| const InetAddress& SyncSource::getNetworkAddress | ( | ) | const [inline] |
| Participant* SyncSource::getParticipant | ( | ) | const [inline] |
Get the participant this synchronization source is asociated to.
| NULL | if the stack has not been yet able to identify the participant this source is associated to. |
| State SyncSource::getState | ( | ) | const [inline] |
| bool SyncSource::isSender | ( | ) | const [inline] |
Whether this source sends RTP data packets.
| SyncSource& SyncSource::operator= | ( | const SyncSource & | source | ) | [protected] |
friend class SyncSourceHandler [friend] |
1.4.7