hellopics-mgmt_ui.c File Reference

Relating to the user interface (commands) of hellopics-mgmt. More...

#include <jnx/mgmt_sock_pub.h>
#include <jnx/ms_parse.h>
#include <junoscript/xmlrpc.h>
#include <junoscript/xmllib_pub.h>
#include <ddl/defs.h>
#include "hellopics-mgmt_conn.h"

Go to the source code of this file.


static int32_t hellopics_show_stats (mgmt_sock_t *msp, parse_status_t *csb __unused, char *unparsed __unused)


hellopics_stats_t hellopics_stats
 global message stats
static const parse_menu_t show_sync_hellopics_menu []
static const parse_menu_t show_sync_menu []
static const parse_menu_t show_menu []
const parse_menu_t master_menu []

Detailed Description

Relating to the user interface (commands) of hellopics-mgmt.

Contains callback functions that get executed by commands on the router

Definition in file hellopics-mgmt_ui.c.

Function Documentation

static int32_t hellopics_show_stats ( mgmt_sock_t *  msp,
parse_status_t *csb  __unused,
char *unparsed  __unused 
) [static]

Displays the configured message

[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
0 if no error; 1 to terminate connection

Definition at line 55 of file hellopics-mgmt_ui.c.

References hellopics_stats, hellopics_stats_s::msgs_badorder, hellopics_stats_s::msgs_missed, hellopics_stats_s::msgs_received, and hellopics_stats_s::msgs_sent.

Variable Documentation

const parse_menu_t master_menu[]

Initial value:

    { "show", NULL, 0, show_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
main menu of commands

Definition at line 116 of file hellopics-mgmt_ui.c.

Referenced by main().

const parse_menu_t show_menu[] [static]

Initial value:

    { "sync", NULL, 0, show_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
show ... commands

Definition at line 108 of file hellopics-mgmt_ui.c.

const parse_menu_t show_sync_hellopics_menu[] [static]

Initial value:

    { "statistics", NULL, 0, NULL, hellopics_show_stats },
    { NULL, NULL, 0, NULL, NULL }
show sync hellopics ... commands

Definition at line 92 of file hellopics-mgmt_ui.c.

const parse_menu_t show_sync_menu[] [static]

Initial value:

    { "hellopics", NULL, 0, show_sync_hellopics_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
show sync ... commands

Definition at line 100 of file hellopics-mgmt_ui.c.

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