RTPReceiver Class Reference

#include <rtp.h>

List of all members.

Public Member Functions

 RTPReceiver (u_int32_t srcid)
u_int32_t srcid ()
int cum_pkts_lost ()
double eff_rtt ()
double rate ()
bool sent_report ()
void cum_pkts_lost (int n)
void eff_rtt (double n)
void rate (double n)
void receive_report (receiver_report *)
void sent_report (bool n)

Public Attributes

RTPReceivernext

Protected Attributes

u_int32_t srcid_
int cum_pkts_lost_
double eff_rtt_
double rate_
bool sent_report_


Detailed Description

this class holds the fields of the receivers in the RTP session. A receiver can only receive RTP packets and it is not a source

Definition at line 247 of file rtp.h.


Constructor & Destructor Documentation

RTPReceiver::RTPReceiver ( u_int32_t  srcid  ) 

constructor

Constructor

Parameters:
srcid the source id of the newly created RTPReceiver

Definition at line 863 of file session-rtp.cc.

References srcid_.

00864         : next(0),cum_pkts_lost_(0),eff_rtt_(0),rate_(0),sent_report_(false)
00865 {
00866         srcid_ = srcid;
00867 }


Member Function Documentation

u_int32_t RTPReceiver::srcid (  )  [inline]

int RTPReceiver::cum_pkts_lost (  )  [inline]

returns the total number of RTP packets lost

Definition at line 257 of file rtp.h.

References cum_pkts_lost_.

00257 { return (cum_pkts_lost_); }

double RTPReceiver::eff_rtt (  )  [inline]

returns the effective RTT time measured by the sender

Definition at line 259 of file rtp.h.

References eff_rtt_.

Referenced by RTPSession::build_report(), and RTPSession::recv_ctrl().

00259 { return (eff_rtt_); }

double RTPReceiver::rate (  )  [inline]

returns the sendind rate in bytes/sec

Definition at line 261 of file rtp.h.

References rate_.

Referenced by RTPSession::recv_ctrl(), and RTPSession::update_rate().

00261 { return (rate_); }

bool RTPReceiver::sent_report (  )  [inline]

Definition at line 262 of file rtp.h.

References sent_report_.

00262 { return (sent_report_); }

void RTPReceiver::cum_pkts_lost ( int  n  )  [inline]

adds the lost packets since the start of the session

Definition at line 265 of file rtp.h.

References cum_pkts_lost_.

00265 { cum_pkts_lost_ += n; }

void RTPReceiver::eff_rtt ( double  n  )  [inline]

the effective RTT as it is measured by the RTP sender

Definition at line 267 of file rtp.h.

References eff_rtt_.

00267 { eff_rtt_ = n; }

void RTPReceiver::rate ( double  n  )  [inline]

the TCP-friendly as it is reported by thr RTP receiver

Definition at line 269 of file rtp.h.

References rate_.

00269 { rate_ = n; }

void RTPReceiver::receive_report ( receiver_report  ) 

void RTPReceiver::sent_report ( bool  n  )  [inline]

Definition at line 271 of file rtp.h.

References sent_report_.

00271 { sent_report_ = n; }


Member Data Documentation

u_int32_t RTPReceiver::srcid_ [protected]

the srcid of this receiver

Definition at line 275 of file rtp.h.

Referenced by RTPReceiver(), and srcid().

int RTPReceiver::cum_pkts_lost_ [protected]

the sum of packets lost since the start of the session

Definition at line 277 of file rtp.h.

Referenced by cum_pkts_lost().

double RTPReceiver::eff_rtt_ [protected]

the effective RTT as it is measured by the RTP sender

Definition at line 279 of file rtp.h.

Referenced by eff_rtt().

double RTPReceiver::rate_ [protected]

the estimated trannsmission rate

Definition at line 281 of file rtp.h.

Referenced by rate().

bool RTPReceiver::sent_report_ [protected]

Definition at line 282 of file rtp.h.

Referenced by sent_report().


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

Generated on Sun Jun 1 20:54:52 2008 for ASMP_S by  doxygen 1.5.5