Hi all,I try to stop application through Simulator::Schedule() like this
void SetApplicationStopTime( Ptr<Application> app, ApplicationContainer c)
{
app->SetStopTime(Simulator::Now());
c.Stop(Seconds(Simulator::Now()));
}
BUT it does not work when the time arrive,it does not STOP send data.Why?
And it can STOP TX or RX data though that way
serverApps.Stop (Seconds(simtime-45));
clientApps.Stop (Seconds(simtime-45));
Meanwhile i found that even if i don't set application start time,the app also send data?
So my question is :Can i through Simulator::Schedule() to stop application in a time i need?
Or there exist another way to solve this problem?
Any answer is very appreciate.
BR,
Hongyu.