M
Michael Ransburg
Hi!
I have implemented a daemon in C++. It runs all the time, between
reboots. Is there a way for other C++ classes to get a reference to
the instance of this daemon class in order to call its methods
directly?
E.G.:
1) System Start - daemon class is instantiated and launched
2) System Start + 5 Minutes: user class is instantiated and launched
3) user instance wants to access methods of daemon instance
4) user instance calls "getClassInstance('daemon')" to get a reference
to the instance of the daemon class
5) user calls daemon.getInformation();
It's step 4) I'm not sure how to do.
Any assistance would be highly appreciated.
Thanks,
Michael
I have implemented a daemon in C++. It runs all the time, between
reboots. Is there a way for other C++ classes to get a reference to
the instance of this daemon class in order to call its methods
directly?
E.G.:
1) System Start - daemon class is instantiated and launched
2) System Start + 5 Minutes: user class is instantiated and launched
3) user instance wants to access methods of daemon instance
4) user instance calls "getClassInstance('daemon')" to get a reference
to the instance of the daemon class
5) user calls daemon.getInformation();
It's step 4) I'm not sure how to do.
Any assistance would be highly appreciated.
Thanks,
Michael