Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SsrcCollisionList Class Reference

#include <MNRTPSsrcCollisionList.h>

Collaboration diagram for SsrcCollisionList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~SsrcCollisionList ()
void lock ()
void unlock ()
bool update_if (const struct sockaddr_in &addr, ntp64 now, u_int32 ssrc)
size_t update_expire (ntp64 now)
size_t remove_ssrc (u_int32 ssrc)

Constructor & Destructor Documentation

SsrcCollisionList::~SsrcCollisionList  ) 
 


Member Function Documentation

void SsrcCollisionList::lock  ) 
 

size_t SsrcCollisionList::remove_ssrc u_int32  ssrc  ) 
 

Remove all entries from the collision list that match the given ssrc. This is typical for the BYE operation.

Parameters:
ssrc The ssrc that the caller gives up.
Returns:
The number of items actually deleted.

void SsrcCollisionList::unlock  ) 
 

size_t SsrcCollisionList::update_expire ntp64  now  ) 
 

Remove all entries from the collision list that are expired. Collision entries expire after 30 minutes.

Parameters:
now The current time (compare with this).
Returns:
The number of items actually deleted.

bool SsrcCollisionList::update_if const struct sockaddr_in &  addr,
ntp64  now,
u_int32  ssrc
 

Determine whether the given addr is already in the collision list. If it is in the list, update the entry.

Parameters:
addr The address with which we have a collision.
now The current time in NTP time.
ssrc The collided sync source value.
Returns:
True if the entry was already present and has been updated, false if the entry was not present and has been added to the list.


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:17 2005 for Komssys by doxygen 1.3.8