Enter_Method() or Enter_Method_Silent()?

12 views
Skip to first unread message

bekhtimu...@gmail.com

unread,
Oct 13, 2016, 5:35:35 AM10/13/16
to OMNeT++ Users
Hello,
I want to stop UDPbroadcasting for a mobile node who has arrived to its destination and let the others Nodes broadcasting.

I v add the lines below in ANSimMobility Model


cModule *myUdpModule = getParentModule()->getSubmodule("udpApp",0);
UDPBasicApp *myUdp = check_and_cast<UDPBasicApp *>(myUdpModule);

 cMessage *selfMsg = nullptr;
 selfMsg = new cMessage("sendTimer");

selfMsg->setKind(3);
myUdp->scheduleAt(d.dbl(),selfMsg);

myUdp->processStop;



And I have add this line in UDPBasicAPP
Enter_Method_silent()

But I still have a problem " method clled from Enter_Metho or Enter_Method_Silent()?.


Do You have any idea how to resolve the UDP broadcasting from another module?
Thanks before

Alfonso Ariza Quintana

unread,
Oct 13, 2016, 5:43:27 AM10/13/16
to omn...@googlegroups.com

I think that you can use signals for this.

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages