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

RE: Sending time



> If you look in udp.cc you see that there is a variable "nbytes", which sendmsg() uses. Does anybody knows where it comes from what it is for!?

It's set by whoever is calling UdpAgent::sendmsg(). Normally, a udp is
driven by a traffic generator, e.g., cbr. In TrafficGenerator::timeout(),
there is a call to send() of the attached agent. That's where packet size,
or 'nbytes', gets passed to the agent.

- Haobo