Chapter 4.2 : With class

If you need more advanced functionnalities you can derived your own custom Daemon from the Daemon class.

We can define our example class, SendDataDaemon, by deriving from the Daemon class.
1
class SendDataDaemon : public Daemon<DaemonEmptyBackend>
At this point, you can choose to lock the backend (here to DaemonEmptyBackend) or keep a template class to postpone it. Here, we will lock the backend to DaemonEmptyBackend for clarity.