[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is txtime()?



Hi, there:

PLease take a look at the following question:

it is in the file delay.cc

+++++++++++++++++++++++++++++++++++++++++++++++++
void LinkDelay::recv(Packet* p, Handler* h)
{
	double txt=txtime(p);

/************ what do the txtime(p) mean      *****/

	Scheduler& s=Scheduler::instance();
	if (dynamic_) {
		Event* e=(Event* )p;
		e->time_=txt+delay_;
		itq_->enque(p); //for convinience, use a queue to store
packets in
		s.schedule(this, p, txt+delay_);
	} else {
		s.schedule(target_, p, txt + delay_);
	}
	s.schedule(h, &intr_, txt);
}

++++++++++++++++++++++++++++++++++++++++++++
could sb give me a hint? thanks a lot.

gang