|
Electroneum
|

Go to the source code of this file.
Classes | |
| struct | rc_state |
| struct | daemon_remote |
| struct | remote_stream |
Macros | |
| #define | REMOTE_CONTROL_TCP_TIMEOUT 120000 |
Typedefs | |
| typedef struct remote_stream | RES |
Functions | |
| struct daemon_remote * | daemon_remote_create (struct config_file *cfg) |
| void | daemon_remote_delete (struct daemon_remote *rc) |
| void | daemon_remote_clear (struct daemon_remote *rc) |
| struct listen_port * | daemon_remote_open_ports (struct config_file *cfg) |
| int | daemon_remote_open_accept (struct daemon_remote *rc, struct listen_port *ports, struct worker *worker) |
| void | daemon_remote_stop_accept (struct daemon_remote *rc) |
| void | daemon_remote_start_accept (struct daemon_remote *rc) |
| void | daemon_remote_exec (struct worker *worker) |
This file contains the remote control functionality for the daemon. The remote control can be performed using either the commandline unbound-control tool, or a SSLv3/TLS capable web browser. The channel is secured using SSLv3 or TLSv1, and certificates. Both the server and the client(control tool) have their own keys.
Definition in file remote.h.
| #define REMOTE_CONTROL_TCP_TIMEOUT 120000 |
| typedef struct remote_stream RES |
| void daemon_remote_clear | ( | struct daemon_remote * | rc | ) |
remote control state to clear up. Busy and accept points are closed. Does not delete the rc itself, or the ssl context (with its keys).
| rc | state to clear. |
| struct daemon_remote* daemon_remote_create | ( | struct config_file * | cfg | ) |
Create new remote control state for the daemon.
| cfg | config file with key file settings. |
| void daemon_remote_delete | ( | struct daemon_remote * | rc | ) |
remote control state to delete.
| rc | state to delete. |
| void daemon_remote_exec | ( | struct worker * | worker | ) |
Handle nonthreaded remote cmd execution.
| worker | this worker (the remote worker). |
| int daemon_remote_open_accept | ( | struct daemon_remote * | rc, |
| struct listen_port * | ports, | ||
| struct worker * | worker | ||
| ) |
Setup comm points for accepting remote control connections.
| rc | state |
| ports | already opened ports. |
| worker | worker with communication base. and links to command channels. |
| struct listen_port* daemon_remote_open_ports | ( | struct config_file * | cfg | ) |
Open and create listening ports for remote control.
| cfg | config options. |
| void daemon_remote_start_accept | ( | struct daemon_remote * | rc | ) |
Stop accept handlers for TCP (until enabled again)
| rc | state |
| void daemon_remote_stop_accept | ( | struct daemon_remote * | rc | ) |
Stop accept handlers for TCP (until enabled again)
| rc | state |