equilibrium-data_main.c File Reference

Contains main entry point. More...

#include "equilibrium-data_main.h"
#include "equilibrium-data_config.h"
#include "equilibrium-data_conn.h"
#include "equilibrium-data_monitor.h"
#include "equilibrium-data_packet.h"

Go to the source code of this file.


#define DNAME_EQUILIBRIUM_DATA   "equilibrium-data"


static void equilibrium_quit (int signo __unused)
static int equilibrium_init (evContext ctx)
int main (int32_t argc, char **argv)


static evContext mainctx
 the event context of this main thread

Detailed Description

Contains main entry point.

Contains the main entry point and registers the application as a MSP daemon

Definition in file equilibrium-data_main.c.

Define Documentation

#define DNAME_EQUILIBRIUM_DATA   "equilibrium-data"

Constant string for the daemon name

Definition at line 750 of file equilibrium-data_main.c.

Referenced by main().

Function Documentation

static int equilibrium_init ( evContext  ctx  )  [static]

Callback for the first initialization of the MP-SDK Application

[in] ctx Newly created event context
SUCCESS (0) upon successful completion; EFAIL otherwise (exits)

Definition at line 795 of file equilibrium-data_main.c.

References equilibrium_quit(), init_config(), init_connections(), init_monitor(), init_packet_loops(), LOG, and mainctx.

Referenced by main().

static void equilibrium_quit ( int signo  __unused  )  [static]

This function quits the application does an exit

Definition at line 763 of file equilibrium-data_main.c.

References clear_config(), close_connections(), destroy_packet_loops(), LOG, mainctx, and shutdown_monitor().

Referenced by equilibrium_init().

int main ( int32_t  argc,
char **  argv 

Intialize equilibrium's environment

[in] argc Number of command line arguments
[in] argv String array of command line arguments
0 upon successful exit of the application (shouldn't happen) or 1 upon failure

Definition at line 898 of file equilibrium-data_main.c.

References DNAME_EQUILIBRIUM_DATA, and equilibrium_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:56 2010 for SDK Your Net Corporation Equilibrium Load Balancer Example: equilibrium-data 1.0 by Doxygen 1.5.1