JRTPLIB  3.9.0
Public Member Functions | List of all members
jrtplib::RTPCollisionList Class Reference

This class represents a list of addresses from which SSRC collisions were detected. More...

#include <rtpcollisionlist.h>

Inherits jrtplib::RTPMemoryObject.

Public Member Functions

 RTPCollisionList (RTPMemoryManager *mgr=0)
 Constructs an instance, optionally installing a memory manager. More...
 
void Clear ()
 Clears the list of addresses. More...
 
int UpdateAddress (const RTPAddress *addr, const RTPTime &receivetime, bool *created)
 Updates the entry for address addr to indicate that a collision was detected at time receivetime. More...
 
bool HasAddress (const RTPAddress *addr) const
 Returns true} if the address addr appears in the list. More...
 
void Timeout (const RTPTime &currenttime, const RTPTime &timeoutdelay)
 Assuming that the current time is given by currenttime, this function times out entries which haven't been updated in the previous time interval specified by timeoutdelay.
 

Detailed Description

Constructor & Destructor Documentation

jrtplib::RTPCollisionList::RTPCollisionList ( RTPMemoryManager mgr = 0)

Member Function Documentation

void jrtplib::RTPCollisionList::Clear ( )
bool jrtplib::RTPCollisionList::HasAddress ( const RTPAddress addr) const
int jrtplib::RTPCollisionList::UpdateAddress ( const RTPAddress addr,
const RTPTime receivetime,
bool *  created 
)

Updates the entry for address addr to indicate that a collision was detected at time receivetime. If the entry did not exist yet, the flag created is set to true, otherwise it is set to false.


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