ns-allinone-2.35/rap/media-app.cc
void QA::UpdateState()
{
	double last_ptime = playTime_; // Last time to drain buffer
	DrainBuffers();
	DumpInfo(Scheduler::instance().clock(), last_ptime, 
		 rate(), avgrate_, rap()->srtt());
}
// This routine models draining of buffers at the recv
// it periodically updates state of buffers
// Ir must be called once and then it reschedules itself
// it is first called after playout is started!
This routine models draining of buffers at the recv
it periodically updates state of buffers
Ir must be called once and then it reschedules itself
it is first called after playout is started!
This routine models draining of buffers at the recv it periodically updates state of buffers Ir must be called once and then it reschedules itself it is first called after playout is started!
void QA::UpdateState()
{
	double last_ptime = playTime_; 
	DrainBuffers();
	DumpInfo(Scheduler::instance().clock(), last_ptime, 
		 rate(), avgrate_, rap()->srtt());
}
void QA :: UpdateState ( ) { double last_ptime = playTime_ ; DrainBuffers ( ) ; DumpInfo ( Scheduler :: instance ( ) . clock ( ) , last_ptime , rate ( ) , avgrate_ , rap ( ) -> srtt ( ) ) ; }
This routine models draining of buffers at the recv
it periodically updates state of buffers
Ir must be called once and then it reschedules itself
it is first called after playout is started!
This routine models draining of buffers at the recv it periodically updates state of buffers Ir must be called once and then it reschedules itself it is first called after playout is started!
// Last time to drain buffer