[Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] |
Daemon (service) application class
uses |
||
|
Custom application class |
|
|
Unit implementing system log class |
|
rtlconsts; |
|
Constant strings for messages |
The daemonapp unit implements a TApplication class which encapsulates a daemon or service application. It handles installation where this is necessary, and does instantiation of the various daemons where necessary.
The unit consists of 3 separate classes which cooperate tightly:
As can be seen, a single application can implement one ore more daemons (services). Each daemon will be run in a separate thread which is controlled by the application class.
The classes take care of logging through the TEventLog class.
Many options are needed only to make the application behave as a windows service application on windows. These options are ignored in UNIX-like environment. The documentation will mention this.