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

MNShared_RTP_RTCP Class Reference

#include <MNShared_RTP_RTCP.h>

Collaboration diagram for MNShared_RTP_RTCP:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MNShared_RTP_RTCP (MNSelector &sel)
 MNShared_RTP_RTCP (MNSelector &sel, u_int32 bandwidth, int32 payload_type, const char *targetaddr, int32 dpt_ts_rate=-1)
 ~MNShared_RTP_RTCP ()
MNSelectormainSelector ()
const char * get_targetaddr () const
void set_bandwidth (u_int32_t bw)
u_int32_t bandwidth () const
void set_pt_type (int32_t t)
int32_t pt_type () const
void set_dpt_ts_rate (int32_t t)
int32_t dpt_ts_rate () const
void set_bye (bool on, const char *msg)
void set_react_on_bye (bool val)
bool react_on_bye () const
bool rtcp_send_bye () const
void set_ssrc_collision (bool val)
bool ssrc_collision () const
void set_rtcp_allowed (bool val)
bool rtcp_allowed () const
void set_rtp_bad_ver (u_int32_t val)
void inc_rtp_bad_ver ()
u_int32_t rtp_bad_ver () const
void set_rtp_bad_length (u_int32_t val)
void inc_rtp_bad_length ()
u_int32_t rtp_bad_length () const
void set_rtcp_bad_ver (u_int32_t val)
void inc_rtcp_bad_ver ()
u_int32_t rtcp_bad_ver () const
void set_rtcp_bad_pt (u_int32_t val)
void inc_rtcp_bad_pt ()
u_int32_t rtcp_bad_pt () const

Public Attributes

char * _bye_msg
 The string for an optional BYE message.
int _bye_msg_len
 Length of the BYE message string.

Detailed Description

RTP/RTCP shared information class.
Class that contains information that is shared by an RTP object and its corresponding RTCP object. It is not (should not be) shared by masters and slaves.


Constructor & Destructor Documentation

MNShared_RTP_RTCP::MNShared_RTP_RTCP MNSelector sel  ) 
 

Constructor. Sets default values for the members that are shared between RTP and RTCP. Sets the reference count to 0.

MNShared_RTP_RTCP::MNShared_RTP_RTCP MNSelector sel,
u_int32  bandwidth,
int32  payload_type,
const char *  targetaddr,
int32  dpt_ts_rate = -1
 

Constructor. Sets default values for the members that are shared between RTP and RTCP. Sets the reference count to 0.

Parameters:
bandwidth The bandwidth at which the data will be sent. (Unused for RTCP?).
payload_type The payload type determine the RTP codec to be used. (Unused for RTCP?).
targetaddr For multicast, the IP address to be joined (in dotted notation). Unused for unicast.

MNShared_RTP_RTCP::~MNShared_RTP_RTCP  ) 
 


Member Function Documentation

u_int32_t MNShared_RTP_RTCP::bandwidth  )  const
 

Returns:
_bandwidth

int32_t MNShared_RTP_RTCP::dpt_ts_rate  )  const
 

Returns:
_dpt_ts_rate

const char* MNShared_RTP_RTCP::get_targetaddr  )  const
 

Get a pointer to the target address string.

Returns:
the hostname or a dotted decimal address.

void MNShared_RTP_RTCP::inc_rtcp_bad_pt  ) 
 

Parameters:
val Increase the number of bad payload RTCP packets.

void MNShared_RTP_RTCP::inc_rtcp_bad_ver  ) 
 

Parameters:
val Increase the number of bad version RTCP packets.

void MNShared_RTP_RTCP::inc_rtp_bad_length  ) 
 

Parameters:
val Increase the number of bad length RTP packets.

void MNShared_RTP_RTCP::inc_rtp_bad_ver  ) 
 

Parameters:
val Increase the number of bad version RTP packets.

MNSelector& MNShared_RTP_RTCP::mainSelector  )  [inline]
 

int32_t MNShared_RTP_RTCP::pt_type  )  const
 

Returns:
_pt_type

bool MNShared_RTP_RTCP::react_on_bye  )  const
 

Returns:
_react_on_bye

bool MNShared_RTP_RTCP::rtcp_allowed  )  const
 

Returns:
_rtcp_allowed

u_int32_t MNShared_RTP_RTCP::rtcp_bad_pt  )  const
 

Returns:
The number of RTCP packets with bad payload types so far.

u_int32_t MNShared_RTP_RTCP::rtcp_bad_ver  )  const
 

Returns:
The number of bad RTCP version packets so far.

bool MNShared_RTP_RTCP::rtcp_send_bye  )  const
 

Returns:
_rtcp_send_bye

u_int32_t MNShared_RTP_RTCP::rtp_bad_length  )  const
 

Returns:
The number of RTP packets with bad length so far.

u_int32_t MNShared_RTP_RTCP::rtp_bad_ver  )  const
 

Returns:
The number of bad RTP version packets so far.

void MNShared_RTP_RTCP::set_bandwidth u_int32_t  bw  ) 
 

Parameters:
bw Bandwidth to set

void MNShared_RTP_RTCP::set_bye bool  on,
const char *  msg
 

Update the status flag that indicates whether a BYE message is sent by RTP.

Parameters:
on If true, BYE messages are sent.
msg If BYE messages are sent, up to the first RTP_MAX_SDES bytes of this string is appended to the BYE message. This string may be NULL or empty.

void MNShared_RTP_RTCP::set_dpt_ts_rate int32_t  t  ) 
 

Parameters:
t Set the timestamp rate for dynamic PTs in _dpt_ts_rate

void MNShared_RTP_RTCP::set_pt_type int32_t  t  ) 
 

Parameters:
t Set the payload type in _pt_type

void MNShared_RTP_RTCP::set_react_on_bye bool  val  ) 
 

Parameters:
val set to true if RTCP bye messages should be processed

void MNShared_RTP_RTCP::set_rtcp_allowed bool  val  ) 
 

Parameters:
val Set whether RTCP processing is allowed.

void MNShared_RTP_RTCP::set_rtcp_bad_pt u_int32_t  val  ) 
 

Parameters:
val Set the number of bad payload RTCP packets.

void MNShared_RTP_RTCP::set_rtcp_bad_ver u_int32_t  val  ) 
 

Parameters:
val Set the number of bad version RTCP packets.

void MNShared_RTP_RTCP::set_rtp_bad_length u_int32_t  val  ) 
 

Parameters:
val Set the number of bad length RTP packets.

void MNShared_RTP_RTCP::set_rtp_bad_ver u_int32_t  val  ) 
 

Parameters:
val Set the number of bad version RTP packets.

void MNShared_RTP_RTCP::set_ssrc_collision bool  val  ) 
 

Parameters:
val Set to true if collisions should be detected. Default is true.

bool MNShared_RTP_RTCP::ssrc_collision  )  const
 

Returns:
_ssrc_collision


Member Data Documentation

char* MNShared_RTP_RTCP::_bye_msg
 

The string for an optional BYE message.

int MNShared_RTP_RTCP::_bye_msg_len
 

Length of the BYE message string.


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