daemonize.daemon

Platform independent parts of the library. Defines common signals that safe to catch, utilities for describing daemons and some utitility templates for duck typing.

Members

Enums

Signal
enum Signal

Native signals that can be hooked. There arn't all linux native signals due safety.

Functions

customSignal
Signal customSignal(string name)

Creating your own custom signal. Theese signals are binded to realtime signals in linux and to winapi events in Windows.

Templates

Composition
template Composition(Signals...)

Signal OR composition.

Daemon
template Daemon(string name, alias pSignalMap, alias pMainFunc)

Template for describing daemon in the package.

DaemonClient
template DaemonClient(string name, Signals...)

Truncated description of daemon for use with sendSignal function. You need to pass a daemon name and a list of signals to Signals expression list.

isComposition
template isComposition(alias T)

Checks if T is a composition of signals

isDaemon
template isDaemon(alias T)

Duck typing Daemon description

isDaemonClient
template isDaemonClient(alias T)

Duck typing of DaemonClient

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

NCrashed <ncrashed@gmail.com>