statUsage_example.c

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
Napatech Software Suite: examples/statUsage/statUsage_example.c File Reference
statUsage_example.c File Reference
#include <nt.h>
#include <argparse.h>

Go to the source code of this file.

Functions

static void StopApplication (int sig)
 
int main (int argc, const char *argv[])
 

Variables

int appRunning =1
 
static const char * usageText []
 
static int opt_streamid = -1
 
struct argparse_option arg_options []
 

Function Documentation

static void StopApplication ( int  sig)
static

The function called when user is pressing CTRL-C

Definition at line 126 of file statUsage_example.c.

Referenced by main().

int main ( int  argc,
const char *  argv[] 
)

Definition at line 140 of file statUsage_example.c.

Variable Documentation

int appRunning =1

Definition at line 98 of file statUsage_example.c.

Referenced by main(), and StopApplication().

const char* usageText[]
static
Initial value:
= {
"Syntax:\n"
"statUsage_example [-h][-s <stream ID>]\n"
"\nCommands:\n",
NULL}

Print command line info

Definition at line 103 of file statUsage_example.c.

Referenced by main().

int opt_streamid = -1
static
Examples:
statUsage/statUsage_example.c.

Definition at line 109 of file statUsage_example.c.

Referenced by main().

struct argparse_option arg_options[]
Initial value:
= {
OPT_INTEGER('s', "streamid", &opt_streamid, "Stream ID", NULL, 0, 0, "streamid"),
}

Table of valid options.

Definition at line 114 of file statUsage_example.c.