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

[ns] scheduling



i am writing some C++ code for implementing a Tcl command.
as part of this command, i want to send a number of packets to different
destinations.
what do i do to keep the simulator clock moving while sending the packets
one after the other?

For example:
I want to send packets 1,2,3,4,....10 to destinations x1, x2,.....

all from within the same C++ function.
how do i schedule the dispatch of packets from C++ so that all the packets
are not sent at the same time, thereby causing a possible buffer overflow?

Thanks.

-Srinivasan