[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] scheduling
If you want to keep simulator clock ticking inside c++ you probably want
to take a look at TimerHandler class, in timer-handler.cc, also in ns
manual.
On Tue, 7 Mar 2000, Srinivasan Jagannathan wrote:
> 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
>
>