OpenDNSSEC-signer 1.2.1
Data Structures | Defines | Typedefs | Functions

/build/buildd-opendnssec_1.2.1.dfsg-1-ia64-j6OroR/opendnssec-1.2.1.dfsg/signer/src/daemon/cmdhandler.h File Reference

#include "config.h"
#include "scheduler/locks.h"
#include <sys/un.h>
Include dependency graph for cmdhandler.h:

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 (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 42 of file cmdhandler.h.

Referenced by cmdhandler_create(), and cmdhandler_start().


Typedef Documentation

Definition at line 47 of file cmdhandler.h.


Function Documentation

void cmdhandler_cleanup ( cmdhandler_type cmdhandler)

Clean up command handler.

Parameters:
[in]cmdhandler_type*clean up this command handler

Clean up command handler.

Definition at line 862 of file cmdhandler.c.

References se_free(), and se_log_warning().

Referenced by cmdhandler_start().

cmdhandler_type* cmdhandler_create ( const char *  filename)

Create command handler.

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

Create command handler.

Definition at line 723 of file cmdhandler.c.

References cmdhandler_struct::listen_addr, cmdhandler_struct::listen_fd, cmdhandler_struct::need_to_exit, ODS_SE_MAX_HANDLERS, se_log_debug(), se_log_error(), se_malloc(), and SUN_LEN.

void cmdhandler_start ( cmdhandler_type cmdhandler)