TxShaper Class Reference

#include <rtp.h>

List of all members.


Detailed Description

Definition at line 255 of file mythplugins/mythphone/mythphone/rtp.h.


Public Member Functions

 TxShaper (int bw, int period, int granularity)
 ~TxShaper ()
bool OkToSend ()
void Send (int Bytes)
void setMaxBandwidth (int bytesPerSec)

Private Member Functions

void flushHistory ()

Private Attributes

int historySize
int * txHistory
int txGranularity
int txWindowTotal
int maxBandwidth
int itTail
int itHead
QTime timestamp
int timeLastFlush
int timeLastSend

Constructor & Destructor Documentation

TxShaper::TxShaper ( int  bw,
int  period,
int  granularity 
)

Definition at line 1475 of file rtp.cpp.

TxShaper::~TxShaper (  ) 

Definition at line 1492 of file rtp.cpp.


Member Function Documentation

bool TxShaper::OkToSend (  ) 

Definition at line 1497 of file rtp.cpp.

Referenced by rtp::transmitQueuedVideo().

void TxShaper::Send ( int  Bytes  ) 

Definition at line 1503 of file rtp.cpp.

Referenced by rtp::transmitQueuedVideo().

void TxShaper::setMaxBandwidth ( int  bytesPerSec  )  [inline]

Definition at line 262 of file mythplugins/mythphone/mythphone/rtp.h.

void TxShaper::flushHistory (  )  [private]

Definition at line 1514 of file rtp.cpp.

Referenced by OkToSend(), and Send().


Member Data Documentation

int TxShaper::historySize [private]

Definition at line 266 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), Send(), and TxShaper().

int* TxShaper::txHistory [private]

Definition at line 267 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), Send(), TxShaper(), and ~TxShaper().

int TxShaper::txGranularity [private]

Definition at line 268 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), Send(), and TxShaper().

int TxShaper::txWindowTotal [private]

Definition at line 269 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), OkToSend(), Send(), and TxShaper().

int TxShaper::maxBandwidth [private]

Definition at line 270 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by OkToSend(), and TxShaper().

int TxShaper::itTail [private]

Definition at line 271 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), and TxShaper().

int TxShaper::itHead [private]

Definition at line 272 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by Send(), and TxShaper().

QTime TxShaper::timestamp [private]

Definition at line 273 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), Send(), and TxShaper().

int TxShaper::timeLastFlush [private]

Definition at line 274 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by flushHistory(), and TxShaper().

int TxShaper::timeLastSend [private]

Definition at line 275 of file mythplugins/mythphone/mythphone/rtp.h.

Referenced by Send(), and TxShaper().


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

Generated on Sat Dec 18 05:16:12 2010 for MythTV by  doxygen 1.5.5