Ping::TheConfig Class Reference

parameters controlling 'ping' mode message looping. More...

#include <Ping.h>

Collaboration diagram for Ping::TheConfig:

Public Member Functions

 TheConfig ()
 
void usage ()
 display Ping Options command line help to stderr More...
 
bool parseCommandOpts (int argc, char *argv[], int c, int &optIndex)
 

Public Attributes

bool enable
 
int count
 
int interval
 

Detailed Description

Definition at line 20 of file Ping.h.

Constructor & Destructor Documentation

◆ TheConfig()

Ping::TheConfig::TheConfig ( )
inline

Definition at line 23 of file Ping.h.

Member Function Documentation

◆ parseCommandOpts()

bool Ping::TheConfig::parseCommandOpts ( int  argc,
char *  argv[],
int  c,
int optIndex 
)

parse –ping command line options

Returns
true if there are other options still to parse

Definition at line 167 of file Ping.cc.

References INT_MAX, optarg, opterr, optind, shortOpStr, and usage().

Referenced by main().

◆ usage()

void Ping::TheConfig::usage ( )

Definition at line 155 of file Ping.cc.

Referenced by usage().

Member Data Documentation

◆ count

int Ping::TheConfig::count

Definition at line 35 of file Ping.h.

Referenced by Ping::Init(), and Ping::LoopDone().

◆ enable

bool Ping::TheConfig::enable

Definition at line 34 of file Ping.h.

Referenced by catchSignal(), and Ping::LoopDone().

◆ interval

int Ping::TheConfig::interval

Definition at line 36 of file Ping.h.

Referenced by Ping::TimerStop().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors