OpenDNSSEC-enforcer
2.0.2
|
Go to the source code of this file.
Data Structures | |
struct | cmdhandler_struct |
struct | cmd_func_block |
Macros | |
#define | ODS_SE_MAX_HANDLERS 5 |
Typedefs | |
typedef struct cmdhandler_struct | cmdhandler_type |
Functions | |
cmdhandler_type * | cmdhandler_create (const char *filename) |
void | cmdhandler_cleanup (cmdhandler_type *cmdhandler) |
void | cmdhandler_start (cmdhandler_type *cmdhandler) |
void | cmdhandler_stop (struct engine_struct *engine) |
void | cmdhandler_get_usage (int sockfd) |
struct cmd_func_block * | get_funcblock (const char *cmd, ssize_t n) |
#define ODS_SE_MAX_HANDLERS 5 |
Command handler.
Definition at line 40 of file cmdhandler.h.
typedef struct cmdhandler_struct cmdhandler_type |
Definition at line 45 of file cmdhandler.h.
void cmdhandler_cleanup | ( | cmdhandler_type * | cmdhandler | ) |
Cleanup command handler.
[in] | cmdhandler | command handler |
Cleanup command handler.
Definition at line 446 of file cmdhandler.c.
References cmdhandler_struct::listen_fd.
Referenced by engine_teardown().
cmdhandler_type* cmdhandler_create | ( | const char * | filename | ) |
Create command handler.
[in] | filename | socket file name |
Create command handler.
Definition at line 367 of file cmdhandler.c.
References ods_log_error().
void cmdhandler_get_usage | ( | int | sockfd | ) |
Print usage of all known commands to file descriptor
[in] | sockfd,file | descriptor to print to. |
Definition at line 163 of file cmdhandler.c.
void cmdhandler_start | ( | cmdhandler_type * | cmdhandler | ) |
Start command handler.
[in] | cmdhandler_type* | command handler |
Start command handler.
Definition at line 457 of file cmdhandler.c.
References cmdhandler_struct::engine, MAX_CLIENT_CONN, and ods_log_debug().
void cmdhandler_stop | ( | struct engine_struct * | engine | ) |
Stop command handler.
Definition at line 594 of file cmdhandler.c.
References engine_struct::cmdhandler, cmdhandler_struct::need_to_exit, and ods_log_debug().
struct cmd_func_block* get_funcblock | ( | const char * | cmd, |
ssize_t | n | ||
) |
Retrieve function block responsible for cmd
Loops over all known commands, first command to claim to be responsible will have its function block returned. If not claimed return NULL.
[in] | cmd,command | to look for |
[in] | n,length | of cmd string. |
Definition at line 175 of file cmdhandler.c.