calling UDPBAsicAPP::processStop() from another module

4 views
Skip to first unread message

bekhtimu...@gmail.com

unread,
Oct 13, 2016, 5:27:11 AM10/13/16
to OMNeT++ Users
I'm calling UDPBAsicAPP::processStop() from ANSimMobility.cc module, and I got problem cause is processStop is protected,  so how can I declare ANSimMobility like friend in UDPBasicApp
Thanks

Alfonso Ariza Quintana

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

http://www.cplusplus.com/doc/tutorial/inheritance/

 

in the declaration of the class

friend class ANSimMobility;

 

 

You can also declare the method like public.

--
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.

bekhtimu...@gmail.com

unread,
Oct 13, 2016, 5:49:14 AM10/13/16
to OMNeT++ Users, aari...@hotmail.com
Yes, It was I did, I declared Pblic, but the node didn't stopped sending packet even after executing processStop.
Reply all
Reply to author
Forward
0 new messages