rtcp.c File Reference

#include "rtcp.h"
#include "utils.h"

Include dependency graph for rtcp.c:

Go to the source code of this file.

Functions

static void rtcp_clean (void *args)
double rtcp_interval (int members, int senders, double bw, int sent, double avg_rtcp_size, int initial)
static void * rtcp (void *args)
int rtcp_thread_create (rtp_thread *rtp_th)


Detailed Description

This file contains the RTCP main loop function and functions to create and run an RTCP loop for an RTP Thread.

Definition in file rtcp.c.


Function Documentation

static void* rtcp ( void *  args  )  [static]

The RTCP thread main loop, continuously calls rctp_recv every time there is data available or handles pending events if no data is available

Parameters:
args The rtp_thread for which to loop.

Definition at line 63 of file rtcp.c.

References nms_timeval_add(), nms_timeval_subtract(), rtcp_clean(), rtcp_clean_events(), rtcp_handle_event(), rtcp_interval(), rtcp_recv(), and rtcp_schedule().

Referenced by rtcp_thread_create().

Here is the call graph for this function:

static void rtcp_clean ( void *  args  )  [static]

RTCP Layer clean up is demanded to RTP layer (rtp_clean) This function actually does nothing

Parameters:
args The rtp_thread for which to clean up the RTCP layer

Definition at line 37 of file rtcp.c.

Referenced by rtcp().

double rtcp_interval ( int  members,
int  senders,
double  rtcp_bw,
int  we_sent,
double  avg_rtcp_size,
int  initial 
)

Calculates an interval between rtcp reports

Parameters:
members Number of members active in the session
senders Number of senders active in the session
rtcp_bw ?
we_sent TRUE -> Calculate interval for sending, FALSE -> for receiving
avg_rtcp_size ?
initial If it's the first interval we are calculating
Returns:
Result time in ms

Definition at line 44 of file rtcp_utils.c.

Referenced by rtcp(), and rtcp_handle_event().


Generated on Tue Feb 3 03:10:02 2009 for libnemesi by  doxygen 1.5.4