RTPSource Class Reference

#include <rtp.h>

List of all members.

Public Member Functions

 RTPSource (u_int32_t srcid)
u_int32_t srcid ()
int np ()
int snp ()
int ehsr ()
int nbytes ()
int cum_pkts_lost ()
double LSR ()
double SRT ()
bool is_sender ()
int ps ()
double rate ()
double transit ()
double jitter ()
void np (int n)
void snp (int n)
void ehsr (int n)
void nbytes (int n)
void cum_pkts_lost (int n)
void LSR (double n)
void SRT (double n)
void is_sender (bool n)
void ps (int n)
void rate (double n)
void transit (double n)
void jitter (double n)

Public Attributes

RTPSourcenext

Protected Attributes

u_int32_t srcid_
int np_
int snp_
int ehsr_
int nbytes_
int cum_pkts_lost_
double LSR_
double SRT_
bool is_sender_
int ps_
double rate_
double transit_
double jitter_


Detailed Description

This class holds the fields of the sources. A source may only send RTP packets but it can be also a receiver that is active, which means it sends and receives RTP packets. For the meaning of the fields of this class read RFC 3550. Some fields are only for implementation cotrol and debugging

Definition at line 128 of file rtp.h.


Constructor & Destructor Documentation

RTPSource::RTPSource ( u_int32_t  srcid  ) 

constructor

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

References srcid_.


Member Function Documentation

u_int32_t RTPSource::srcid (  )  [inline]

returns the srcid_ of the RTPSource

Definition at line 136 of file rtp.h.

References srcid_.

Referenced by RTPSession::build_report(), RTPSession::calculateR_tcp(), RTPSession::enter(), RTPSession::enter_rcv(), RTPSession::lookup(), RTPSession::recv(), RTPSession::recv_ctrl(), RTPSession::remove_receiver(), RTPSession::srcid(), and RTPSession::update_rate().

int RTPSource::np (  )  [inline]

returns the number of packets sent np_ since last report

Definition at line 138 of file rtp.h.

References np_.

Referenced by RTPSession::build_report(), RTPSession::localsrc_update(), and RTPSession::recv().

int RTPSource::snp (  )  [inline]

returns the total number of packets sent snp_ since last report

Definition at line 140 of file rtp.h.

References snp_.

int RTPSource::ehsr (  )  [inline]

returns the last highest extended number

Definition at line 142 of file rtp.h.

References ehsr_.

Referenced by RTPSession::recv().

int RTPSource::nbytes (  )  [inline]

returns the total number of bytes sent

Definition at line 144 of file rtp.h.

References nbytes_.

Referenced by RTPSession::build_report(), RTPSession::localsrc_update_nbytes(), and RTPSession::recv().

int RTPSource::cum_pkts_lost (  )  [inline]

returns the total number of packets lost

Definition at line 146 of file rtp.h.

References cum_pkts_lost_.

Referenced by RTPSession::recv().

double RTPSource::LSR (  )  [inline]

returns the time of the Last Sender report

Definition at line 148 of file rtp.h.

References LSR_.

Referenced by RTPSession::recv_ctrl().

double RTPSource::SRT (  )  [inline]

returns the sender report time

Definition at line 150 of file rtp.h.

References SRT_.

Referenced by RTPSession::recv_ctrl().

bool RTPSource::is_sender (  )  [inline]

returns true if this source is a sender, false otherwise

Definition at line 152 of file rtp.h.

References is_sender_.

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

int RTPSource::ps (  )  [inline]

returns the size of the RTP Packet

Definition at line 154 of file rtp.h.

References ps_.

Referenced by RTPSession::recv().

double RTPSource::rate (  )  [inline]

retuns the sending rate in bytes/sec

Definition at line 156 of file rtp.h.

References rate_.

double RTPSource::transit (  )  [inline]

returns the difference between the RTP packet sending and receiving times

Definition at line 158 of file rtp.h.

References transit_.

Referenced by RTPSession::recv().

double RTPSource::jitter (  )  [inline]

returns the delay jitter

Definition at line 160 of file rtp.h.

References jitter_.

Referenced by RTPSession::recv().

void RTPSource::np ( int  n  )  [inline]

the number of packets sent np_ since last report

Definition at line 163 of file rtp.h.

References np_.

void RTPSource::snp ( int  n  )  [inline]

the total number of packets sent snp_ since last report

Definition at line 165 of file rtp.h.

References snp_.

void RTPSource::ehsr ( int  n  )  [inline]

the last highest extended number

Definition at line 167 of file rtp.h.

References ehsr_.

void RTPSource::nbytes ( int  n  )  [inline]

the total number of bytes sent

Definition at line 169 of file rtp.h.

References nbytes_.

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

the total number of packets lost

Definition at line 171 of file rtp.h.

References cum_pkts_lost_.

void RTPSource::LSR ( double  n  )  [inline]

the time of the Last Sender report

Definition at line 173 of file rtp.h.

References LSR_.

void RTPSource::SRT ( double  n  )  [inline]

the sender report time

Definition at line 175 of file rtp.h.

References SRT_.

void RTPSource::is_sender ( bool  n  )  [inline]

true if this source is a sender, false otherwise

Definition at line 177 of file rtp.h.

References is_sender_.

void RTPSource::ps ( int  n  )  [inline]

the size of the RTP Packet

Definition at line 179 of file rtp.h.

References ps_.

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

the sending rate in bytes/sec

Definition at line 181 of file rtp.h.

References rate_.

void RTPSource::transit ( double  n  )  [inline]

the difference between the RTP packet sending and receiving times

Definition at line 183 of file rtp.h.

References transit_.

void RTPSource::jitter ( double  n  )  [inline]

the delay jitter

Definition at line 185 of file rtp.h.

References jitter_.


Member Data Documentation

u_int32_t RTPSource::srcid_ [protected]

the srcid_ of the RTPSource

Definition at line 188 of file rtp.h.

Referenced by RTPSource(), and srcid().

int RTPSource::np_ [protected]

the number of packets sent np_ since last report

Definition at line 190 of file rtp.h.

Referenced by np().

int RTPSource::snp_ [protected]

the total number of packets sent snp_ since last report

Definition at line 192 of file rtp.h.

Referenced by snp().

int RTPSource::ehsr_ [protected]

the last highest extended number

Definition at line 194 of file rtp.h.

Referenced by ehsr().

int RTPSource::nbytes_ [protected]

the total number of bytes sent

Definition at line 196 of file rtp.h.

Referenced by nbytes().

int RTPSource::cum_pkts_lost_ [protected]

the total number of packets lost

Definition at line 198 of file rtp.h.

Referenced by cum_pkts_lost().

double RTPSource::LSR_ [protected]

the time of the Last Sender report

Definition at line 200 of file rtp.h.

Referenced by LSR().

double RTPSource::SRT_ [protected]

the sender report time

Definition at line 202 of file rtp.h.

Referenced by SRT().

bool RTPSource::is_sender_ [protected]

true if this source is a sender, false otherwise

Definition at line 204 of file rtp.h.

Referenced by is_sender().

int RTPSource::ps_ [protected]

the size of the RTP Packet

Definition at line 206 of file rtp.h.

Referenced by ps().

double RTPSource::rate_ [protected]

the size of the RTP Packet

Definition at line 208 of file rtp.h.

Referenced by rate().

double RTPSource::transit_ [protected]

the difference between the RTP packet sending and receiving times

Definition at line 210 of file rtp.h.

Referenced by transit().

double RTPSource::jitter_ [protected]

the delay jitter

Definition at line 212 of file rtp.h.

Referenced by jitter().


The documentation for this class was generated from the following files:
Generated on Sat Mar 8 18:04:09 2008 for RTP by  doxygen 1.5.1