dnxstats.c File Reference

Main source file for DNX management control client. More...

#include "dnxProtocol.h"
#include "dnxTransport.h"
#include "dnxError.h"
#include "dnxDebug.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>

Go to the source code of this file.

Defines

#define VERSION   "<unknown>"

Functions

static void usage (char *base)
 Print a usage string and exit.
int main (int argc, char **argv)
 The main program entry point for the dnx management client.


Detailed Description

Main source file for DNX management control client.

Author:
John Calcote (jcalcote@users.sourceforge.net)
Attention:
Please submit patches to http://dnx.sourceforge.net

Definition in file dnxstats.c.


Define Documentation

#define VERSION   "<unknown>"

Definition at line 36 of file dnxstats.c.


Function Documentation

int main ( int  argc,
char **  argv 
)

The main program entry point for the dnx management client.

Parameters:
[in] argc - the number of elements in the argv array.
[in] argv - a null-terminated array of command-line arguments.
Returns:
Zero on success, or a non-zero error code that is returned to the shell. Any non-zero codes should be values between 1 and 127.

Definition at line 79 of file dnxstats.c.

References DnxMgmtRequest::action, DNX_MODE_ACTIVE, DNX_OBJ_MANAGER, DNX_REQ_ACK, dnxChanMapAdd(), dnxChanMapDelete(), dnxChanMapInit(), dnxChanMapRelease(), dnxConnect(), dnxDisconnect(), dnxErrorString(), dnxMakeXID(), dnxSendMgmtRequest(), dnxWaitForMgmtReply(), PACKAGE_BUGREPORT, DnxMgmtReply::reply, DnxMgmtReply::status, usage(), VERSION, xheapchk, and DnxMgmtRequest::xid.

static void usage ( char *  base  )  [static]

Print a usage string and exit.

Parameters:
[in] base - the base program name.

Definition at line 56 of file dnxstats.c.


Generated on Tue Apr 13 15:48:08 2010 for DNX by  doxygen 1.5.6