hellopics-ctrl_main.c File Reference

Contains main entry point. More...

#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <isc/eventlib.h>
#include <jnx/mpsdk.h>
#include <jnx/aux_types.h>
#include <jnx/logging.h>
#include "hellopics-ctrl_conn.h"

Go to the source code of this file.

Defines

#define DNAME_HELLOPICS_CTRL   "hellopics-ctrl"

Functions

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


Detailed Description

Contains main entry point.

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

Definition in file hellopics-ctrl_main.c.


Define Documentation

#define DNAME_HELLOPICS_CTRL   "hellopics-ctrl"

Constant string for the daemon name

Definition at line 81 of file hellopics-ctrl_main.c.

Referenced by main().


Function Documentation

static int hellopics_ctrl_init ( evContext  ctx  )  [static]

Callback for the first initialization of the RE-SDK Application

Parameters:
[in] ctx Newly created event context
Returns:
SUCCESS (0) upon successful completion

Definition at line 109 of file hellopics-ctrl_main.c.

References hellopics_ctrl_quit(), and init_connections().

Referenced by main().

static void hellopics_ctrl_quit ( int signo  __unused  )  [static]

This function quits the application upon a SIGTERM signal

Definition at line 94 of file hellopics-ctrl_main.c.

References close_connections().

Referenced by hellopics_ctrl_init().

int main ( int32_t  argc,
char **  argv 
)

Intializes hellopics-ctrl's environment

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

Definition at line 140 of file hellopics-ctrl_main.c.

References DNAME_HELLOPICS_CTRL, and hellopics_ctrl_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-ctrl 1.0 by Doxygen 1.5.1