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

SendCsrcList Class Reference

#include <MNRTPSendCsrcList.h>

Collaboration diagram for SendCsrcList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void clear ()
size_t size ()
void del (u_int32 csrc)
bool append (u_int32 csrc)
bool find (u_int32 csrc)

Protected Member Functions

void lock ()
void unlock ()
void hton_copyto (u_int32 *buffer)
size_t locked_size ()

Detailed Description

This class holds the list of contribution source values that a sending RTP class should append to the RTP packet header. Functions are all non-const because they use a mutex to protect themselves. In the original version, entries were kept in network byte order. I want to change this to remove the network awareness from larger parts of the code.


Member Function Documentation

bool SendCsrcList::append u_int32  csrc  ) 
 

Add an entry is possible. Does not check whether the entry is already present.

Parameters:
csrc The entry to be added.
Returns:
True if the entry could be added. False if the list holds already RTP_CSRC_MAX entries and the new one could not be added.

void SendCsrcList::clear  ) 
 

Delete all list entries.

void SendCsrcList::del u_int32  csrc  ) 
 

Delete an entry if present.

Parameters:
csrc The contribution source to be removed.

bool SendCsrcList::find u_int32  csrc  ) 
 

Check whether an entry is in the list.

Parameters:
csrc The contribution source that is looked up.
Returns:
True if the csrc is in the list, false otherwise.

void SendCsrcList::hton_copyto u_int32 buffer  )  [protected]
 

Special host-to-network translation function for MNRTP when the list is locked. Allows copying and assigning the size in one step.

Parameters:
buffer An allocated buffer into which the entries are written in network byte order.

void SendCsrcList::lock  )  [protected]
 

size_t SendCsrcList::locked_size  )  [protected]
 

Special size check for MNRTP when the list is locked. Allows copying and assigning the size in one step.

size_t SendCsrcList::size  ) 
 

Retrieve the number of entries.

void SendCsrcList::unlock  )  [protected]
 


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