|
Electroneum
|
#include "util/locks.h"#include "util/alloc.h"#include "services/modstack.h"#include "dnstap/dnstap_config.h"#include "dnscrypt/dnscrypt_config.h"
Go to the source code of this file.
Classes | |
| struct | daemon |
Functions | |
| struct daemon * | daemon_init (void) |
| int | daemon_open_shared_ports (struct daemon *daemon) |
| void | daemon_fork (struct daemon *daemon) |
| void | daemon_cleanup (struct daemon *daemon) |
| void | daemon_delete (struct daemon *daemon) |
| void | daemon_apply_cfg (struct daemon *daemon, struct config_file *cfg) |
The daemon consists of global settings and a number of workers.
Definition in file daemon.h.
| void daemon_apply_cfg | ( | struct daemon * | daemon, |
| struct config_file * | cfg | ||
| ) |
Apply config settings.
| daemon | the daemon. |
| cfg | new config settings. |
| void daemon_cleanup | ( | struct daemon * | daemon | ) |
Close off the worker thread information. Bring the daemon back into state ready for daemon_fork again.
| daemon | the daemon. |
| void daemon_delete | ( | struct daemon * | daemon | ) |
Delete workers, close listening ports.
| daemon | the daemon. |
| void daemon_fork | ( | struct daemon * | daemon | ) |
Fork workers and start service. When the routine exits, it is no longer forked.
| daemon | the daemon. |
| struct daemon* daemon_init | ( | void | ) |
Initialize daemon structure.
| int daemon_open_shared_ports | ( | struct daemon * | daemon | ) |
Open shared listening ports (if needed). The cfg member pointer must have been set for the daemon.
| daemon | the daemon. |