hellopics-mgmt_config.c File Reference

Relating to loading and storing the configuration data. More...

#include <ddl/dax.h>
#include <sys/socket.h>
#include <netdb.h>
#include <jnx/junos_trace.h>
#include <jnx/junos_re_redundancy.h>
#include <jnx/junos_re_info.h>
#include "hellopics-mgmt_logging.h"
#include "hellopics-mgmt_config.h"
#include "hellopics-mgmt_conn.h"
#include "hellopics-mgmt_ha.h"

Go to the source code of this file.


#define NAME_LENGTH   64


int hellopics_config_read (int check UNUSED)
void init_config (void)


volatile boolean is_master

Detailed Description

Relating to loading and storing the configuration data.

These functions will parse and load the configuration data.

Definition in file hellopics-mgmt_config.c.

Function Documentation

int hellopics_config_read ( int check  UNUSED  ) 

Read daemon configuration from the database. (nothing to do except traceoptions)

[in] check 1 if this function being invoked because of a commit check
SUCCESS (0) successfully loaded, -1 in case of error
Do not use ERRMSG during config check.

Definition at line 57 of file hellopics-mgmt_config.c.

Referenced by main().

void init_config ( void   ) 

Initialize the application as Active or Backup depending on the mastership of RE. Initialize the replication module for synchronization between the Active and Backup.

Definition at line 71 of file hellopics-mgmt_config.c.

References HELLOPICS_MASTER_ADDR, LOG, NAME_LENGTH, and set_mastership().

Referenced by hellopics_init().

2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:58 2010 for SDK Your Net Corporation Hellopics Example: hellopics-mgmt 1.0 by Doxygen 1.5.1