hellopics-data_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 "hellopics-data_conn.h"

Go to the source code of this file.

Defines

#define DNAME_HELLOPICS_DATA   "hellopics-data"

Functions

static void hellopics_data_quit (int signo __unused)
static int hellopics_data_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-data_main.c.


Define Documentation

#define DNAME_HELLOPICS_DATA   "hellopics-data"

Constant string for the daemon name

Definition at line 86 of file hellopics-data_main.c.

Referenced by main().


Function Documentation

static int hellopics_data_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 114 of file hellopics-data_main.c.

References hellopics_data_quit(), and init_connections().

Referenced by main().

static void hellopics_data_quit ( int signo  __unused  )  [static]

This function quits the application does an exit

Definition at line 98 of file hellopics-data_main.c.

References close_connections().

Referenced by hellopics_data_init().

int main ( int32_t  argc,
char **  argv 
)

Intializes hellopics-data'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 143 of file hellopics-data_main.c.

References DNAME_HELLOPICS_DATA, and hellopics_data_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-data 1.0 by Doxygen 1.5.1