Bugzilla – Bug 2371
Stop application through Schedule
Last modified: 2016-04-12 04:22:17 EDT
The discussion is here: https://groups.google.com/forum/#!topic/ns-3-users/qUYqnO-P4I0 Basically the request is to be able to stop (or start) an application using Schedule. This is (obviously) possible by the application itself, but not by an external object (e.g., a callback in the main script).
I agree this is a limitation. Also, it is not clear from the documentation that applications cannot be stopped once initialization time passes (i.e. calling SetStopTime() during simulation run time doesn't take effect. Is the idea to provide a public Application::Stop ()?
Yes (and Start too, for symmetry). However, we must double check that the various derived classes don't rely on the assumption that Start and Stop are called only once.