OpenDNSSEC-signer 1.3.0rc3
Data Structures | Defines | Typedefs | Functions
/build/buildd2-opendnssec_1.3.0~rc3-1-mips-lpJjcT/opendnssec-1.3.0~rc3/signer/src/daemon/cmdhandler.h File Reference
#include "config.h"
#include "shared/allocator.h"
#include "shared/locks.h"
#include <sys/un.h>
Include dependency graph for cmdhandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cmdhandler_struct

Defines

#define ODS_SE_MAX_HANDLERS   5

Typedefs

typedef struct cmdhandler_struct cmdhandler_type

Functions

cmdhandler_typecmdhandler_create (allocator_type *allocator, const char *filename)
void cmdhandler_start (cmdhandler_type *cmdhandler)
void cmdhandler_cleanup (cmdhandler_type *cmdhandler)

Define Documentation

#define ODS_SE_MAX_HANDLERS   5

Command handler.

Definition at line 43 of file cmdhandler.h.

Referenced by cmdhandler_create(), and cmdhandler_start().


Typedef Documentation

Definition at line 48 of file cmdhandler.h.


Function Documentation

void cmdhandler_cleanup ( cmdhandler_type cmdhandler)

Cleanup command handler.

Parameters:
[in]cmdhandler_type*command handler

Cleanup command handler.

Definition at line 1003 of file cmdhandler.c.

References cmdhandler_struct::allocator, and allocator_deallocate().

Referenced by engine_cleanup().

cmdhandler_type* cmdhandler_create ( allocator_type allocator,
const char *  filename 
)

Create command handler.

Parameters:
[in]allocatormemory allocator
[in]filenamesocket file name
Returns:
cmdhandler_type* created command handler

Create command handler.

Definition at line 844 of file cmdhandler.c.

References cmdhandler_struct::allocator, allocator_alloc(), cmdhandler_struct::listen_addr, cmdhandler_struct::listen_fd, cmdhandler_struct::need_to_exit, ods_log_assert, ods_log_debug(), ods_log_error(), ODS_SE_MAX_HANDLERS, and SUN_LEN.

void cmdhandler_start ( cmdhandler_type cmdhandler)